Skip to content

Commit

Permalink
style: Fixed the problem that when Cascader has no options and the em…
Browse files Browse the repository at this point in the history
…ptyContent is hovering, the background color will exceed the popup layer area
  • Loading branch information
YyumeiZhang committed Jul 26, 2024
1 parent bca3ec6 commit fb411dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/semi-foundation/cascader/cascader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ $module: #{$prefix}-cascader;

.#{$module}-option-empty {
@include font-size-regular;
border-radius: $radius-cascader_option_empty;
min-width: $width-cascader_option;
color: $color-cascader_option_empty-text-default;
margin: 0;
Expand Down Expand Up @@ -424,6 +425,7 @@ $module: #{$prefix}-cascader;
color: $color-cascader_option_main-text-default;
position: relative;


&:hover {
background-color: $color-cascader_option-bg-hover;
}
Expand Down
1 change: 1 addition & 0 deletions packages/semi-foundation/cascader/variables.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$radius-cascader: var(--semi-border-radius-small); // 级联选择菜单圆角
$radius-cascader_option_empty: var(--semi-border-radius-medium); // 级联选择菜单空状态圆角

$color-cascader_default-border-default: transparent; // 级联选择描边颜色 - 默认
$color-cascader_default-border-hover: transparent; // 级联选择描边颜色 - 悬浮
Expand Down

0 comments on commit fb411dd

Please sign in to comment.