What fresh hell is THIS now? - Patrick Lauke
aria-haspopup=“true”
on buttons that launch a non-menu dialog?
After this one, we just need to say @stevefaulkner 's name one more time and he should show up.
You should look into a mirror and say his name four times, he will magically not appear anywhere near you; because this is the real life…
excerpt from my book (that I’m still writing so can’t link to)
However, not all browsers are created equal. Clicking on a div with
[tabindex="0"]
or[tabindex="-1"]
will always focus that element. Things get weird when we look at how the native focus outline is applied, though. On Mac OS X Safari, Chrome and Firefox behave the same: an element that has focus, gets the native focus outline drawn around it (unless a custom one was specified). On Windows things are a little more complicated. IE11 never renders the native focus outline on click, but does so on <kbd>Tab</kbd>. Custom focus outlines are drawn on click and <kbd>Tab</kbd>. Chrome doesn't differentiate OS in this regard and always renders the native focus outline as it should. Chrome might change its position, if this two year old patch gets merged. Firefox behaves like IE11, unless you've hit <kbd>Tab</kbd> at least once - then even a click will render the focus outline.
document.activeElement
does it change the styling when it’s done programmatically?
nope.
Custom focus outlines are drawn on click and <kbd>Tab</kbd>.
:focus
. if you don’t have that, chances are the outlines aren’t drawn
<button arial-label="CALIFORNIA"><b>CA</b>LIFORNIA</button>
aria-label
in this case, in an ideal world
<span aria-label="California"><b>CA</b>LIFORNIA</span></span>