Skip to content

Commit

Permalink
feat(TreeSelect): rework popup border radius (#1456)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandr Isaev <[email protected]>
  • Loading branch information
IsaevAlexandr and IsaevAlexandr authored Mar 29, 2024
1 parent bdab522 commit 0cf2f95
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 16 additions & 1 deletion src/components/TreeSelect/TreeSelect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,23 @@ $block: '.#{variables.$ns}tree-select';

&__popup {
padding: 4px 0;
border-radius: 6px;
overflow: hidden;

&_size_s {
border-radius: var(--g-list-container-border-radius, 5px);
}

&_size_m {
border-radius: var(--g-list-container-border-radius, 6px);
}

&_size_l {
border-radius: var(--g-list-container-border-radius, 8px);
}

&_size_xl {
border-radius: var(--g-list-container-border-radius, 10px);
}
}

&__list {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TreeSelect/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const TreeSelect = React.forwardRef(function TreeSelect<T>(
{togglerNode}
<SelectPopup
ref={controlWrapRef}
className={b('popup', popupClassName)}
className={b('popup', {size}, popupClassName)}
controlRef={controlRef}
width={popupWidth}
placement={placement}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ $block: '.#{variables.$ns}list-item-view';
border-radius: var(--g-list-item-border-radius, 3px);
}
&_radius_m {
border-radius: var(--g-list-item-border-radius, 6px);
border-radius: var(--g-list-item-border-radius, 5px);
}
&_radius_l {
border-radius: var(--g-list-item-border-radius, 8px);
border-radius: var(--g-list-item-border-radius, 6px);
}
&_radius_xl {
border-radius: var(--g-list-item-border-radius, 8px);
Expand Down

0 comments on commit 0cf2f95

Please sign in to comment.