From 0cf2f95907ba1a6164086578d239f905bd15a445 Mon Sep 17 00:00:00 2001 From: Isaev Alexandr Date: Fri, 29 Mar 2024 12:59:48 +0300 Subject: [PATCH] feat(TreeSelect): rework popup border radius (#1456) Co-authored-by: Alexandr Isaev --- src/components/TreeSelect/TreeSelect.scss | 17 ++++++++++++++++- src/components/TreeSelect/TreeSelect.tsx | 2 +- .../components/ListItemView/ListItemView.scss | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/components/TreeSelect/TreeSelect.scss b/src/components/TreeSelect/TreeSelect.scss index bd7e427649..6b77af9c99 100644 --- a/src/components/TreeSelect/TreeSelect.scss +++ b/src/components/TreeSelect/TreeSelect.scss @@ -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 { diff --git a/src/components/TreeSelect/TreeSelect.tsx b/src/components/TreeSelect/TreeSelect.tsx index d43a700e45..541514d181 100644 --- a/src/components/TreeSelect/TreeSelect.tsx +++ b/src/components/TreeSelect/TreeSelect.tsx @@ -228,7 +228,7 @@ export const TreeSelect = React.forwardRef(function TreeSelect( {togglerNode}