Skip to content

Commit 990e311

Browse files
committed
fix(cascader): match dropdown font-size with Select component
Set font-size: $font-size-base on the dropdown container so menu items inherit the same size as Select options.
1 parent 3d11e8d commit 990e311

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

components/cascader/style/_index.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
background: var(--ty-cascader-dropdown-bg, #fff);
9595
border-radius: $border-radius;
9696
box-shadow: $select-dropdown-shadow;
97+
font-size: $font-size-base;
9798
}
9899

99100
&__menus {
@@ -117,7 +118,6 @@
117118
padding: 8px 12px;
118119
color: var(--ty-color-text-secondary, #{$gray-500});
119120
text-align: center;
120-
font-size: $font-size-sm;
121121
}
122122

123123
&__menu-item {
@@ -127,7 +127,6 @@
127127
padding: 5px 12px;
128128
cursor: pointer;
129129
transition: background 0.15s;
130-
font-size: $font-size-sm;
131130

132131
&:hover:not(&_disabled) {
133132
background: var(--ty-cascader-hover, #{$gray-100});

0 commit comments

Comments
 (0)