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

Catalyst components have contradicting class names #1661

Closed
ben519 opened this issue Jan 27, 2025 · 1 comment
Closed

Catalyst components have contradicting class names #1661

ben519 opened this issue Jan 27, 2025 · 1 comment
Assignees

Comments

@ben519
Copy link

ben519 commented Jan 27, 2025

Just re-installed Catalyst (Typescript) components after upgrading tailwind to v4 and now I have a bunch of these warnings:

'data-focus:outline-2' applies the same CSS properties as 'data-focus:outline'

Image

The affected components appear to include:

  • avatar
  • badge
  • dropdown
  • listbox
  • table
@reinink reinink self-assigned this Jan 29, 2025
@reinink
Copy link
Member

reinink commented Jan 29, 2025

Hey @ben519, thanks so much for pointing this out! We recently upgraded all of our site templates from Tailwind CSS v3 to v4, and we missed these conflicting classes 😩

I've just updated the template and pushed a new version up, so you can download it again from the Tailwind UI website, or just make these changes yourself, which you probably already have.

Basically you just need to remove the unnecessary "outline" class now and just keep the one with a size. For example:

- 'focus:outline-hidden data-focus:outline data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500',
+ 'focus:outline-hidden data-focus:outline-2 data-focus:outline-offset-2 data-focus:outline-blue-500',

Sorry about that, and thanks so much for reporting this! 🙏

@reinink reinink closed this as completed Jan 29, 2025
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

2 participants