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

style: Fixed the problem that when Cascader has no options and the em… #2377

Merged
merged 1 commit into from
Jul 26, 2024
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
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
Loading