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

docs(cookbox/theme-management): replaces deprecated tailwind "class" … #7113

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheMcnafaha
Copy link

What is it?

  • Docs

Description

TLDR: Fixes deprecated method.

This is a small change. At some point, the 'class' strategy was replaced by the 'selector' strategy.

Despite the small code change, I'm marking this as a draft for one big reason:

  1. I couldn't figure out the correct way to change the header/metadata of the file.

If that gets fixed, this should be an easy merge. Everything works as it did before (test repo if curious).

I plan on making a new PR after this as I want to improve the behavior of the guide. Mainly, the current guide doesn't respect the user's default theme.

Checklist

…method

From the official tailwind docs:
"The selector strategy replaced the class strategy in Tailwind CSS v3.4.1."

Relevant URL below:
https://tailwindcss.com/docs/dark-mode

All other behavior has been maintained.
Copy link

changeset-bot bot commented Nov 29, 2024

⚠️ No Changeset found

Latest commit: 7f4b0f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

Successfully merging this pull request may close these issues.

1 participant