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
When a button is in the toolbar (such as the vision simulator), it appears with a transparent background by default and blue when something is selected.
However, when making a Global, all of the options appear blue when selected - even the default value. You would expect that when the default value is selected, the button would be marked as transparent/unselected.
To Reproduce
Add the following to the `preview.js`:
// .storybook/preview.js
export const globalTypes = {
theme: {
name: 'Theme',
description: 'Global theme for components',
defaultValue: 'light',
toolbar: {
icon: 'circlehollow',
items: ['light', 'dark'],
showName: true,
dynamicTitle: true,
},
},
};
Run storybook.
You will see the 'Theme' button appears with a blue background in the toolbar.
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When a button is in the toolbar (such as the vision simulator), it appears with a transparent background by default and blue when something is selected.
However, when making a Global, all of the options appear blue when selected - even the default value. You would expect that when the default value is selected, the button would be marked as transparent/unselected.
To Reproduce
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: