Revert including outline-color
in transition
and transition-colors
by default
#10604
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #10591
This PR reverts a change made in #10385 where we added
outline-color
to thetransition
andtransition-colors
utilities by default. Unfortunately this created a breaking change for people usingfocus:outline-none
because our implementation ofoutline-none
actually sets theoutline-color
totransparent
instead of theoutline-style
tonone
for accessibility reasons related to Windows High Contrast Mode. This caused a black outline to momentarily appear on focus if you were using atransition
ortransition-colors
utility on an element that also hadfocus:outline-none
.For anyone who does need
outline-color
to transition, you can extend yourtransitionProperty
configuration to includeoutline-color
in theDEFAULT
andcolors
properties:There is a good chance we add this back for Tailwind CSS v4.0 along with this change to
outline-none
that only sets theoutline-color
totransparent
whenforced-colors
isactive
:https://play.tailwindcss.com/fFQOGafBjR
We've opted not to make this change to
outline-none
right away so that we have more time to test it, while still correcting this breaking change right away.