You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no lock icon inside Switch component, when disabled prop is passed and dark theme is applied
Steps to reproduce
Steps to reproduce the behavior:
Go to Switch component on Storybook
Click on Change the theme on the preview (in case it's hard to find - it's the 4th icon at the top in the middle column)
Choose dark
Scroll down to Stories - States
See the disabled state -> no icon is visible
Expected behavior
Lock icon should be visible (either icon color needs to be changed or the switch color). Right now the switch has forced white design token, that's why it's failing on the dark theme, because on dark theme the icon is also white so white icon on white background is not visible
Screenshots
How it looks on the white theme:
How it looks on dark theme (bug):
Environment
It doesn't matter - everywhere it'll be the same as it's about wrong design tokens
Additional context
None
The text was updated successfully, but these errors were encountered:
Describe the bug
There is no
lock
icon inside Switch component, whendisabled
prop is passed and dark theme is appliedSteps to reproduce
Steps to reproduce the behavior:
Change the theme on the preview
(in case it's hard to find - it's the 4th icon at the top in the middle column)dark
Expected behavior
Lock icon should be visible (either icon color needs to be changed or the switch color). Right now the switch has forced white design token, that's why it's failing on the dark theme, because on dark theme the icon is also white so white icon on white background is not visible
Screenshots
How it looks on the white theme:
How it looks on dark theme (bug):
Environment
It doesn't matter - everywhere it'll be the same as it's about wrong design tokens
Additional context
None
The text was updated successfully, but these errors were encountered: