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

Add forced-color-adjust utilities #11931

Merged
merged 7 commits into from
Nov 2, 2023

Conversation

lukewarlow
Copy link
Contributor

Adds utilities for forced-colors-adjust

@lukewarlow
Copy link
Contributor Author

This is linked to the forced-colors functionality that #11694 also helps to expose in Tailwind.

@RobinMalfait RobinMalfait changed the title Add forced-colors-adjust utilities Add forced-color-adjust utilities Nov 2, 2023
@RobinMalfait
Copy link
Contributor

Hey!

Thanks for the PR, I've updated the name to be forced-color-adjust (singular color) instead to match the property.

@lukewarlow
Copy link
Contributor Author

Ah good catch I must have got confused with the media query.

@RobinMalfait RobinMalfait merged commit 6353450 into tailwindlabs:master Nov 2, 2023
10 checks passed
@RobinMalfait
Copy link
Contributor

Hey!

Thanks for the PR, I renamed the utility and the property to match the real CSS value instead.
This will be available in the next release but you can already try it using the insiders version.

thecrypticace pushed a commit that referenced this pull request Dec 4, 2023
* Add forced-colors-adjust utilities

* Update forcedColorsAdjust.test.js

* use `toMatchSnapshot` instead of `toMatchFormattedCss`

More info: #12170

* rename `forced-colors-adjust` -> `forced-color-adjust`

Dropped the `s` in `colors`.

* update changelog

* fix typo

* use full `forced-color-adjust-auto` and `forced-color-adjust-none` names

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
thecrypticace pushed a commit that referenced this pull request Dec 5, 2023
* Add forced-colors-adjust utilities

* Update forcedColorsAdjust.test.js

* use `toMatchSnapshot` instead of `toMatchFormattedCss`

More info: #12170

* rename `forced-colors-adjust` -> `forced-color-adjust`

Dropped the `s` in `colors`.

* update changelog

* fix typo

* use full `forced-color-adjust-auto` and `forced-color-adjust-none` names

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
thecrypticace pushed a commit that referenced this pull request Dec 18, 2023
* Add forced-colors-adjust utilities

* Update forcedColorsAdjust.test.js

* use `toMatchSnapshot` instead of `toMatchFormattedCss`

More info: #12170

* rename `forced-colors-adjust` -> `forced-color-adjust`

Dropped the `s` in `colors`.

* update changelog

* fix typo

* use full `forced-color-adjust-auto` and `forced-color-adjust-none` names

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
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.

None yet

2 participants