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

Version 0.53 lost support for Focus Styles #2733

Closed
4 tasks done
iamhectorsosa opened this issue Jun 6, 2023 · 0 comments
Closed
4 tasks done

Version 0.53 lost support for Focus Styles #2733

iamhectorsosa opened this issue Jun 6, 2023 · 0 comments

Comments

@iamhectorsosa
Copy link
Contributor

UnoCSS version

unocss 0.53

Describe the bug

I have two projects that I'm working on using unocss. I noticed when I upgraded the package, the focused styles no longer worked. Also the classes don't seem to be recognized.

  • "unocss": "^0.52.7" (working)
  • "unocss": "^0.53.0" (not working)

This is the component I'm testing. All of the focus

<button className="rounded-md bg-neutral-700 px-5 py-2.5 text-sm font-medium text-neutral-100 ring-offset-white active:bg-neutral-900 hover:bg-neutral-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-slate-300">
  Get Started
</button>

Here are my last working ddependencies:

"dependencies": {
  "@unocss/eslint-config": "^0.52.7",
  "@unocss/postcss": "^0.52.7",
  "@unocss/reset": "^0.52.7",
  "unocss": "^0.52.7"
}

Reproduction

Install the latest v 0.53. Test with this component:

<button className="rounded-md bg-neutral-700 px-5 py-2.5 text-sm font-medium text-neutral-100 ring-offset-white active:bg-neutral-900 hover:bg-neutral-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-slate-300">
  Get Started
</button>

System Info

No response

Validations

@antfu antfu closed this as completed in 04ae063 Jun 6, 2023
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