anchor: add visited configurable#92
Open
devadula-nandan wants to merge 9 commits into
Open
Conversation
janhassel
requested changes
Jun 23, 2026
janhassel
left a comment
Member
There was a problem hiding this comment.
Thank you for bringing this up, @devadula-nandan!
I agree actually that the default should be true instead of false to more closely align with web standards. In addition to that I only have two minor comments.
janhassel
requested changes
Jun 24, 2026
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.


Closes N/A
Observed while building WYSIWYG editor (also while reviewing carbon-design-system/carbon#21887) when i noticed visited styles are missing from anchor tags.
Add configurable
:visitedstyles to anchor elementI have default it to
false. waiting for a review. to decide if we can default it totrue. and configurable to befalse.so that it matches the native anchor behavior by default.
Changelog
New
:visitedstateTesting / Reviewing
new demo path
/?element=anchor&demo=visitedcan be found and verifiedScreen.Recording.2026-06-22.at.11.03.06.PM.mov
PR Checklist
As the author of this PR, before marking ready for review, confirm you: