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.
This PR fixes 2 issues with the migration tool where certain classes weren't migrated. This PR fixes those 2 scenarios:
Scenario 1
When you have an arbitrary opacity modifier that doesn't use
%
, but is just a number typically between0
and1
then this was not converted to the bare value equivalent before.E.g.:
Will now be converted to:
Scenario 2
Fixes a bug when a CSS function was used in a fallback value in the CSS variable shorthand syntax. In that case we didn't migrate the class to the new syntax.
This was because we assumed that a
(
was found, that we are dealing with a CSS function.E.g.:
But if a function was used as a fallback value, for example:
Then we also didn't migrate it, but since the function call is in the fallback, we can still migrate it.
Will now properly be converted to:
Test plan
theme(…)
in the fallback also gets updated tovar(…)
. This one caught an issue because thevar(…)
wasn't handling prefixes correctly.