From ba927cbb8eff466562bdff4f9c21230aaec3dad8 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sun, 5 May 2024 20:12:09 +0300 Subject: [PATCH] Refactored tokens of TreeSelect --- .../lib/themes/aura/treeselect/index.js | 28 +++++-------------- .../lib/treeselect/style/TreeSelectStyle.js | 2 +- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/components/lib/themes/aura/treeselect/index.js b/components/lib/themes/aura/treeselect/index.js index 59d05a31a..602e2d12b 100644 --- a/components/lib/themes/aura/treeselect/index.js +++ b/components/lib/themes/aura/treeselect/index.js @@ -13,26 +13,12 @@ export default { placeholderColor: '{form.field.placeholder.color}', boxShadow: '{form.field.box.shadow}' }, - colorScheme: { - light: { - toggle: { - color: '{surface.400}' - }, - overlay: { - background: '{surface.0}', - borderColor: '{surface.200}', - color: '{surface.700}' - } - }, - dark: { - toggle: { - color: '{surface.400}' - }, - overlay: { - background: '{surface.900}', - borderColor: '{surface.700}', - color: '{surface.0}' - } - } + dropdown: { + color: '{form.field.icon.color}' + }, + overlay: { + background: '{overlay.select.background}', + borderColor: '{overlay.select.border.color}', + color: '{overlay.select.color}' } }; diff --git a/components/lib/treeselect/style/TreeSelectStyle.js b/components/lib/treeselect/style/TreeSelectStyle.js index 6cf37394f..672dd696a 100644 --- a/components/lib/treeselect/style/TreeSelectStyle.js +++ b/components/lib/treeselect/style/TreeSelectStyle.js @@ -46,7 +46,7 @@ const theme = ({ dt }) => ` justify-content: center; flex-shrink: 0; background: transparent; - color: ${dt('treeselect.toggle.color')}; + color: ${dt('treeselect.dropdown.color')}; width: 2.5rem; border-top-right-radius: ${dt('rounded.base')}; border-bottom-right-radius: ${dt('rounded.base')};