-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A11y: enable rule jsx-a11y/anchor-is-valid #56690
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
0bfd16b
Enable jsx-a11y/anchor-is-valid rule
eledobleefe a057ecf
Fix errors in Segment stories
eledobleefe 7300cc3
Merge main in this branch
eledobleefe dae81d9
Change a element into button and fix styles in TracePageHeader component
eledobleefe 10bf990
Change a element into button and modify its styles in SpanBarRow comp…
eledobleefe f8ba930
Change a elements into buttons and modify its styles in DashboardRow
eledobleefe 8c0360d
Change a element into span
eledobleefe 8ba8981
Change a element into button and modify types according to that in Tu…
eledobleefe 54bff1d
Change a element into button and modify styles in LegendSeriesItem
eledobleefe 27396a2
Change a element into button and modify styles in PromQueryFields com…
eledobleefe f4c4d13
Change a element into button and modify styles in VariableOptions
eledobleefe 157bce0
Change a element into button and modify styles in LogsQueryField
eledobleefe db79a0f
Modify TutorialCard component according to reviewer's comments
eledobleefe 0b35cba
Add type='button'
eledobleefe fd7e431
Add type='button' and use classNames
eledobleefe 3291359
Merge main in this branch
eledobleefe dc4b8f5
Change a into button and modify styles in TagSection component
eledobleefe f2228bf
Change a element into button and modify styles in FilterSection compo…
eledobleefe a87b3dd
Create a function to clear the button styles and export it
eledobleefe c73d48e
Use clearButtonStyles function
eledobleefe e7f46eb
Fix button styles
eledobleefe e5db26e
Add theme to VariableOptions component and fix import in OptionsPicker
eledobleefe 2d7665f
Add theme to PromQueryField component
eledobleefe 27aeca5
Add theme to LogsQueryField component and fix import in its test and …
eledobleefe 5f3d379
Merge main in this branch
eledobleefe 1a09833
Merge branch 'main' into eledobleefe/jsx-a11y-55834
eledobleefe 809a337
Delete the corresponding line of the rule
eledobleefe b667f2d
Use cx to override clearButtonStyles with text-link and muted classes
eledobleefe 9e32007
Make changes suggested by reviewer
eledobleefe bbb07a8
Merge branch 'main' into eledobleefe/jsx-a11y-55834
eledobleefe 22f6d2c
Use cx to manage which style should be overridden
eledobleefe cc45efc
Merge branch 'main' into eledobleefe/jsx-a11y-55834
eledobleefe File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd be careful when changing anything to
button
as it hassubmit
type by default. Normally its not a big deal, but when used in forms it will trigger a default submit behavior. Therefore I think we'd addtype='button'
to all the buttons by default (our Button component already has that).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comment @Clarity-89 😊 I will add
type='button'
.