Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Proper use of <a> and <button> #2534

Open
xi opened this issue Jul 22, 2016 · 1 comment
Open

Proper use of <a> and <button> #2534

xi opened this issue Jul 22, 2016 · 1 comment

Comments

@xi
Copy link
Collaborator

xi commented Jul 22, 2016

We almost never use a <button> element and often have <a> elements without a proper href attribute. This should be fixed:

  • Links (used for navigation) should use the <a> element with a proper href.
  • We will have to change our current practice of using goToCameFrom(fallback) in a click handler
  • Buttons (used to trigger actions) should use the <button> element.

Reference: http://formidable.com/blog/2014/05/08/anchors-buttons-and-accessibility/

@der-john
Copy link

Won't be changed.

@der-john der-john reopened this Nov 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants