Skip to content

Commit

Permalink
fix(Stepper): fixed style errors in skyline (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jan 16, 2025
1 parent 6bb91a8 commit cfda490
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
20 changes: 6 additions & 14 deletions src/stepper/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ exports[`stepper event : input 1`] = `
class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus"
catch:tap="minusValue"
>
<t-icon
class="t-stepper__minus-icon"
>
<t-icon>
<wx-view
ariaHidden="{{false}}"
ariaLabel=""
Expand Down Expand Up @@ -47,12 +45,10 @@ exports[`stepper event : input 1`] = `
ariaDisabled="{{false}}"
ariaLabel="增加2"
ariaRole="button"
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
catch:tap="plusValue"
>
<t-icon
class="t-stepper__plus-icon"
>
<t-icon>
<wx-view
ariaHidden="{{false}}"
ariaLabel=""
Expand Down Expand Up @@ -82,9 +78,7 @@ exports[`stepper event : input 2`] = `
class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus"
catch:tap="minusValue"
>
<t-icon
class="t-stepper__minus-icon"
>
<t-icon>
<wx-view
ariaHidden="{{false}}"
ariaLabel=""
Expand Down Expand Up @@ -117,12 +111,10 @@ exports[`stepper event : input 2`] = `
ariaDisabled="{{false}}"
ariaLabel="增加2"
ariaRole="button"
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
catch:tap="plusValue"
>
<t-icon
class="t-stepper__plus-icon"
>
<t-icon>
<wx-view
ariaHidden="{{false}}"
ariaLabel=""
Expand Down
6 changes: 3 additions & 3 deletions src/stepper/stepper.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
aria-role="button"
aria-disabled="{{disabled || disableMinus || currentValue <= min}}"
>
<t-icon name="remove" class="{{classPrefix}}__minus-icon" />
<t-icon name="remove" />
</view>
<view
class="{{classPrefix}}__input--{{theme}} {{ disabled || disableInput ? classPrefix + '--' + theme + '-disabled': ''}}"
Expand All @@ -28,12 +28,12 @@
/>
</view>
<view
class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus"
class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus"
catchtap="plusValue"
aria-label="{{'增加' + step}}"
aria-role="button"
aria-disabled="{{disabled || disablePlus|| currentValue >= max}}"
>
<t-icon name="add" class="{{classPrefix}}__plus-icon" />
<t-icon name="add" />
</view>
</view>

0 comments on commit cfda490

Please sign in to comment.