Skip to content

Commit

Permalink
refactor(ui): check transition property of all components
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed Nov 16, 2021
1 parent af893e9 commit e9ec891
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/varlet-ui/src/action-sheet/actionSheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
padding: 10px 0;
max-height: 80%;
background: var(--action-sheet-background);
transition: background-color 0.25s;

&__popup-radius {
border-radius: var(--action-sheet-border-radius);
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/app-bar/appBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
height: var(--app-bar-height);
background: var(--app-bar-color);
color: var(--app-bar-text-color);
transition: background-color 0.25s;

&__title {
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/card/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
padding: var(--card-padding);
line-height: var(--card-line-height);
background: var(--card-background);
transition: 0.25s background-color;
transition: background-color 0.25s;

&__image {
width: var(--card-image-width);
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/counter/counter.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
border-radius: var(--counter-button-size);
padding: var(--counter-padding);
background: var(--counter-background);
transition: background-color 0.25s;
}

&__decrement-button[var-counter-cover] {
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/dialog/dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
width: var(--dialog-width);
border-radius: 3px;
background: var(--dialog-background);
transition: 0.25s background-color;

&__popup-radius[var-dialog-cover] {
border-radius: var(--dialog-border-radius);
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/divider/divider.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
border-top: 1px solid var(--divider-color);
margin: var(--divider-text-margin);
font-size: var(--font-size-md);
color: #888;
color: var(--divider-text-color);

&--vertical {
width: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/skeleton/skeleton.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
background-color: var(--skeleton-card-background-color);
margin-bottom: var(--skeleton-card-margin-bottom);
border-radius: var(--skeleton-card-border-radius);
transition: 0.25s background-color;
transition: background-color 0.25s;
}

&__article {
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/tabs/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
border-radius: var(--tabs-radius);
background: var(--tabs-background);
overflow: hidden;
transition: 0.25s background-color;
transition: background-color 0.25s;

&__tab-wrap {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-ui/src/themes/dark/divider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
'--divider-color': 'rgba(255, 255, 255, 0.12)',
'--divider-text-color': '#aaa',
}
2 changes: 2 additions & 0 deletions packages/varlet-ui/src/uploader/uploader.less
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
background: var(--uploader-file-cover-background);
object-fit: var(--uploader-file-cover-fit);
pointer-events: none;
transition: background-color 0.25s;
}

&__file-close {
Expand Down Expand Up @@ -199,6 +200,7 @@
z-index: 1;
animation: var-uploader-loading-animation 0.6s infinite;
background: var(--uploader-loading-background);
transition: background-color 0.25s;
}
}

Expand Down

0 comments on commit e9ec891

Please sign in to comment.