You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need solution for screen reader to read popover content without forcing ownFocus #729
Tab to the next "Show popover" button under the "Trap focus" section
Press enter
This reacts more like I would expect, however I see the need to have the ability to explicitly set ownFocus. The popovers still need to be read, though... I'm wondering if there's some sort of aria-describedby trick we can use here.
@bhavyarm pointed out to me that the aXe accessibility validator complains about the aria-controls attribute that's added to the button which triggers the popover. This attribute connects the button to the popover it opens, but because it's applied even when the popover doesn't exist in the DOM, it's invalid. I think the solution is to remove this attribute while the popover is closed.
@cjcenizal I'm in this one now, so I'll see what I can do. Also, I couldn't see any reason we wouldn't want to simply apply aria-live="assertive" to these. I can't think of any time you'd want to "click" them and not have the content read.
Activity
fixes elastic#729, apply aria-live to popovers
cjcenizal commentedon May 11, 2018
@bhavyarm pointed out to me that the aXe accessibility validator complains about the
aria-controlsattribute that's added to the button which triggers the popover. This attribute connects the button to the popover it opens, but because it's applied even when the popover doesn't exist in the DOM, it's invalid. I think the solution is to remove this attribute while the popover is closed.snide commentedon May 11, 2018
@cjcenizal I'm in this one now, so I'll see what I can do. Also, I couldn't see any reason we wouldn't want to simply apply aria-live="assertive" to these. I can't think of any time you'd want to "click" them and not have the content read.
cjcenizal commentedon May 11, 2018
Per convo in Slack, my hunch is that there are 2 scenarios to account for:
ownFocusis set)aria-liveto read it out)Fixes for accessibility tickets (#821)