Skip to content

Commit

Permalink
fix: [Cascader] fix icon width error in option list pannel (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
YyumeiZhang authored Oct 14, 2024
1 parent ed0d9bf commit dd106b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/semi-foundation/cascader/cascader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ $module: #{$prefix}-cascader;
&-icon {
display: inline-flex;
flex-shrink: 0;
width: $width-cascader-icon;
width:$width-cascader-option-icon;
color: $color-cascader_option-icon-default;

&-active,
Expand All @@ -450,13 +450,13 @@ $module: #{$prefix}-cascader;
}

&-spin-icon {
width: $width-cascader-icon;
height: $width-cascader-icon;
width: $width-cascader-option-icon;
height: $width-cascader-option-icon;
line-height: 0;

& svg {
width: $width-cascader-icon;
height: $width-cascader-icon;
width: $width-cascader-option-icon;
height: $width-cascader-option-icon;
}
}

Expand Down
3 changes: 2 additions & 1 deletion packages/semi-foundation/cascader/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ $height-cascader_large: $height-control-large; // 级联选择触发器高度 -
$width-cascader_hover-border: $width-cascader-border; // 级联选择触发器描边宽度 - 悬浮
$width-cascader_focus-border: $border-thickness-control-focus; // 级联选择触发器描边宽度 - 选中态
$width-cascader_search-border: 1px; // 级联选择触搜索描边宽度
$width-cascader-icon: 32px; // 级联选择图标尺寸
$width-cascader-icon: 32px; // 级联选择触发器图标尺寸
$width-cascader-option-icon: 16px; // 级联选择选项面板图标尺寸
$width-cascader_option: 150px; // 级联选择各级菜单宽度
$height-cascader_option_list: 180px; // 级联选择菜单高度
$height-cascader_selection_tagInput_wrapper_small: 22px; //级联选择多选搜索时搜索框最小高度 - 小尺寸
Expand Down

0 comments on commit dd106b5

Please sign in to comment.