-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change buttons to links when appropriate #3186
Comments
We need more clarification on this. @lpgoldstein |
From Accessibility in Design course How does using the wrong element negatively affect accessibility? I’ll answer this with a little story someone told me: a person, who uses a screen reader, calls the help desk with an issue. The tech support rep begins walking them through how to troubleshoot the issue. The rep tells them “click the button...”. And visually it does look like a button, but it’s coded as a link. Because, programmatically, it was most appropriate for it to be a link. But the designer designed it to look like a button for stylistic reasons. Now the screen reader user is going through the elements on the page listening for the “button” element, but they can’t find it, and won’t find it, because it’s going to be announced as a link. This is one example of how accessibility is negatively affected when buttons and links are not appropriately designed and coded to be consistent. One more thing that’s helpful to know is that: Keyboard users select a button with the Space bar or the Enter key, but they select a link with just the Enter key (the Space bar does not work to select links). So if they see a button on the page and hit Spacebar to select it, but programmatically it's a link, the spacebar will not select it. If it looks like a button and is programmatically a button, then the spacebar will work. When Use a link when...
Use a button when...
|
More button notes: For a quick review: Links take users to a new page or location when activated. |
@greensomes We need your help to change the NRRD header button to just a link and for the "view all" links within collections. I can go in and fix the other NRRD link today. |
Removed buttons and replaced as links for:
All updates are noted in the content audit. Need Jeff's help to remove buttons for:
Only buttons that should be left alone are for:
|
Putting this back in the backlog for when Jeff has time. Everything that doesn't require Jeff's help is complete. |
@greensomes Updated the NRRD button on header - it's now a link with an external indicator :) Last item left in this issue, and also needs Jeff's help:
|
Best practice is to only use buttons to complete an action, not to simply link to another site or page. Many of our buttons on onrr.gov should just be links - we use action words on these buttons but they are still just links.
Homepage: Revenue Data button in the top right, View All buttons for reporter letters and press releases.
We can stylize the links to draw attention to them - especially the view all links. Maybe we can add additional style options to the new link editor to do so - such as font size?
The text was updated successfully, but these errors were encountered: