What fresh hell is THIS now? - Patrick Lauke
[johnbhartley] @ry5n the placeholder text is looking at users with visual disabilities, who may have trouble with color contrast, but may not necessarily be using a screen reader. So if the placeholder is truly redundant (duplicate text from the label) then I don't think contrast matters, but generally you would have some sort of suggestion in there, at which point it seems like contrast should meet guidelines.
<label for="searchBox">Search:</label> <input id="searchBox" placeholder="Enter city, zip, or potato">
The above gives a lot of suggestion to the user via the placeholder, so in that situation I think contrast would need to meet the guidelines. In general I can't think of too many truly redundant visual label/placeholder pairings, so overall the contrast should be 4.5:1. Just my two cents =D
<a ng-href=“#”>
and routing instead of <a href=“#” ng-click=“someRoutingFunction()”>
preventDefault
@mfairchild365 commenting out https://github.com/mfairchild365/aria-tabs-vo-bug/blob/gh-pages/index.html#L239-L246 and adding
ev.preventDefault(); ev.stopPropagation();
after line#229, works fine for me.
<a href="#menu">
in my markup (the menu is displayed at the end of the page)
role="button"
"keyup"
handler (SPACE should activate it)"click"
handler (JavaScript logic that slides in the menu)
role="button"
or do I need to actually replace the anchor with a <button>
(all in JavaScript)?