-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
accessibilitya11ya11ycomponent: ButtonBaseThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.
Description
Revert #10339 removed safeguard and add additional one so anchors missing href's are treated as buttons.
- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior π€
An anchor with an href should not be assigned role=button.
Current Behavior π―
An anchor with prop button w/ href is being given role of button as it misleads users. A button does not alter the url path while an href does.
Steps to Reproduce πΉ
<ListItem component={Link} to={path} button>
Hi there
</ListItem>
Context π¦
Screen reader
oliviertassinari and codeheroics
Metadata
Metadata
Assignees
Labels
accessibilitya11ya11ycomponent: ButtonBaseThe React component.The React component.good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.