Skip to content

Commit e50a2cf

Browse files
authored
feat(popup): enable --td-popup-transition variable (#3775)
1 parent 871e751 commit e50a2cf

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/popup/README.en-US.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ Name | Default Value | Description
4040
-- | -- | --
4141
--td-popup-bg-color | @bg-color-container | -
4242
--td-popup-border-radius | @radius-default | -
43-
--td-popup-close-btn-color | @text-color-primary | -
43+
--td-popup-close-btn-color | @text-color-primary | -
44+
--td-popup-transition | all 300ms ease | -

src/popup/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ t-class-content | 内容样式类
7979
-- | -- | --
8080
--td-popup-bg-color | @bg-color-container | -
8181
--td-popup-border-radius | @radius-default | -
82-
--td-popup-close-btn-color | @text-color-primary | -
82+
--td-popup-close-btn-color | @text-color-primary | -
83+
--td-popup-transition | all 300ms ease | -

src/popup/popup.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
position: fixed;
1414
z-index: 11500;
1515
max-height: calc(100vh - var(--td-popup-distance-top, 0));
16-
transition: all 300ms ease;
16+
transition: var(--td-popup-transition, all 300ms ease);
1717
background-color: @popup-bg-color;
1818

1919
&__content {

0 commit comments

Comments
 (0)