Skip to content

Commit

Permalink
Move toggle-width, toggle-height and toggle-handle-size to global var…
Browse files Browse the repository at this point in the history
…iables
  • Loading branch information
Evgeniy committed Dec 8, 2023
1 parent f7da300 commit d6c5129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/form/Toggle/Toggle.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.switch {
/** TODO: Improve this sizing logic */
--toggle-width: 55px;
--toggle-height: 35px;
--toggle-handle-size: 25px;

display: flex;
align-items: center;
justify-content: flex-start;
Expand Down
3 changes: 3 additions & 0 deletions src/utils/Theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ export const darkTheme: Theme = {
'select-chip-icon-color': darkColors.slate['50']
},
toggle: {
'toggle-width': '55px',
'toggle-height': '35px',
'toggle-handle-size': '25px',
'toggle-background': darkColors.gray['100'],
'toggle-background-checked': darkColors.blue['50'],
'toggle-border': 'none',
Expand Down

0 comments on commit d6c5129

Please sign in to comment.