fix(DecryptedText): hide sr-only reference text in tailwind variants (#1066) - #1068
Open
MauryaQbit wants to merge 1 commit into
Open
fix(DecryptedText): hide sr-only reference text in tailwind variants (#1066)#1068MauryaQbit wants to merge 1 commit into
MauryaQbit wants to merge 1 commit into
Conversation
The CSS variants were fixed with visibility hidden, but the tailwind variants relied solely on the sr-only utility class, leaving the reference text visible when Tailwind is absent or purged. Add an inline srOnly style with full screen-reader-only properties plus visibility hidden, keeping the sr-only class for compatibility. Now all 4 variants hide the reference text. Related to DavidHDev#1066 (completes DavidHDev#1067 across all variants)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to #1066 (completes #1067 across all 4 variants).
Bug
The sr-only reference text in DecryptedText was visible. #1067 added visibility hidden to the CSS variants (src/content JS and src/ts-default TS), but the tailwind variants still relied solely on the sr-only utility class with no inline fallback, so the reference text stays visible when Tailwind is absent, purged, or copied standalone.
Fix
Tests