Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Stepper): fixed style errors in skyline #3454

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading