storybook-addon-pseudo-states icon indicating copy to clipboard operation
storybook-addon-pseudo-states copied to clipboard

[Feature request] Add a "disabled" state

Open erosenberg opened this issue 3 years ago • 3 comments

I don't know if this qualifies as a pseudo state, but it would be great to see what an element looks like disabled (namely buttons).

erosenberg avatar May 07 '21 20:05 erosenberg

Pretty sure it is a pseudo class: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes Hope to see it in the future

Shaokun-X avatar Jul 01 '21 13:07 Shaokun-X

If I am not wrong, we can easily get the disabled state on a story by using <button disabled>Button</button>

The pseudo classes that were already added needed some events to happen externally like mouse hover for hover & tabbing for focus

navin-moorthy avatar Jul 08 '21 12:07 navin-moorthy

@navin-moorthy but then we have no choice but having two different stories for regular state and disabled one...

ghost avatar Feb 16 '23 10:02 ghost