mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:21:27 +08:00
fix(a11y): fix highlight of selected blindness color filter (#9179)
fix(a11y): fix highlight of selected blindness color filter
This commit is contained in:
commit
a19f606778
@ -87,9 +87,7 @@ export const ColorBlindness: FunctionComponent = () => {
|
||||
|
||||
if (iframe) {
|
||||
iframe.style.filter = getFilter(activeState);
|
||||
setActiveState({
|
||||
active: activeState,
|
||||
});
|
||||
setActiveState(activeState);
|
||||
} else {
|
||||
logger.error('Cannot find Storybook iframe');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user