Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to add focus-visible in parameters #77

Open
unional opened this issue May 17, 2024 · 0 comments
Open

unable to add focus-visible in parameters #77

unional opened this issue May 17, 2024 · 0 comments

Comments

@unional
Copy link

unional commented May 17, 2024

Describe the bug

export const MyStory = {
  parameters: {
    pseudo: {
      hover: ['.hover', '.focus'],
      active: ['.active'],
      'focus-visible': ['.focus'] // <-- this is not working
    }
  },
  render() {
    return (
      // ...
      <button className="focus focus-visible:...">Label</button>
    )
  } 
}

To Reproduce
With the parameter above, the button with class .focus should get the focus-visible pseudo class.
The same applies to focus-within.

focus is working fine.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version 124.0.6367.203 (Official Build) (arm64)

Additional context
The control is working correctly
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant