Refactored tokens of TreeSelect

pull/5701/head
Cagatay Civici 2024-05-05 20:12:09 +03:00
parent feec112a2a
commit ba927cbb8e
2 changed files with 8 additions and 22 deletions

View File

@ -13,26 +13,12 @@ export default {
placeholderColor: '{form.field.placeholder.color}', placeholderColor: '{form.field.placeholder.color}',
boxShadow: '{form.field.box.shadow}' boxShadow: '{form.field.box.shadow}'
}, },
colorScheme: { dropdown: {
light: { color: '{form.field.icon.color}'
toggle: {
color: '{surface.400}'
}, },
overlay: { overlay: {
background: '{surface.0}', background: '{overlay.select.background}',
borderColor: '{surface.200}', borderColor: '{overlay.select.border.color}',
color: '{surface.700}' color: '{overlay.select.color}'
}
},
dark: {
toggle: {
color: '{surface.400}'
},
overlay: {
background: '{surface.900}',
borderColor: '{surface.700}',
color: '{surface.0}'
}
}
} }
}; };

View File

@ -46,7 +46,7 @@ const theme = ({ dt }) => `
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
background: transparent; background: transparent;
color: ${dt('treeselect.toggle.color')}; color: ${dt('treeselect.dropdown.color')};
width: 2.5rem; width: 2.5rem;
border-top-right-radius: ${dt('rounded.base')}; border-top-right-radius: ${dt('rounded.base')};
border-bottom-right-radius: ${dt('rounded.base')}; border-bottom-right-radius: ${dt('rounded.base')};