feat(preset-mini): Add support for peer and group variants on aria-* variants to Preset-Mini #3692
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.
close: #3691
This pull request enable the use of peer and group selectors in conjunction with ara-* variants ( #3691 )
This will provide the ability to achieve styles like:
peer-aria-expanded:bg-red: Applies a red background to an element when its peer element has the aria-expanded attribute set to true.
group-aria-expanded-p-4: Adds a padding of 4 units to elements within a group when a group member has the aria-expanded attribute set to true.
Example
In this example, the
rotate-180
will be applied to the span element when the group member (button) has the aria-expanded attribute set to true.