Skip to content
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

PageHeader "back" button is just a clickable <div> which isn't semantically correct #16038

1 task done
Stephen2 opened this issue Apr 12, 2019 · 1 comment
1 task done


Copy link

@Stephen2 Stephen2 commented Apr 12, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

The "back" button should be an actual <button> element if it just exposes an onClick, OR it could possibly be an <a> element, if it accepted an href property.

Either way, a clickable <div> is no good, because keyboard users can't TAB to it - breaking accessibility

What does the proposed API look like?

No API change, for starters, just make the back arrow render inside a <button>.

This might fit well with the propsed #15892 <-- allow Button to look like plain hyperlink/text

Copy link

@zombieJ zombieJ commented Apr 15, 2019

Nice catch.
@chenshuai2144 , it should use transButton instead:

🌈 A UI Design Language. Contribute to ant-design/ant-design development by creating an account on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants