Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy committed Dec 8, 2023
1 parent d6c5129 commit f1671bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion docs/theme/ThemeExample.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,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 All @@ -394,7 +397,12 @@ export const darkTheme: Theme = {
'toggle-spacing': spacings.sm,
'toggle-handle-background': darkColors.gray['300'],
'toggle-handle-checked-background': darkColors.gray['300'],
'toggle-handle-border-radius': borders.radius.lg
'toggle-handle-border-radius': borders.radius.lg,
'toggle-disabled-background': darkColors.gray['100'],
'toggle-handle-disabled-background': darkColors.gray['300'],
'toggle-checked-disabled-background': darkColors.blue['50'],
'toggle-handle-checked-disabled-background': darkColors.gray['300'],
'toggle-disabled-opacity': '0.8'
},
tooltip: {
'tooltip-background': darkColors.slate['500'],
Expand Down
2 changes: 1 addition & 1 deletion src/form/Toggle/Toggle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

&.disabled {
cursor: not-allowed;
opacity: var(--toggle-disabled-opacity);
opacity: var(--toggle-disabled-opacity, 0.8);
background-color: var(--toggle-disabled-background);

.handle {
Expand Down

0 comments on commit f1671bb

Please sign in to comment.