Hacker News new | ask | show | jobs
by tyingq 3729 days ago
I've heard, secondhand, from disabled people that tooltips are particularly troublesome for screen readers, keyboard traversal, etc. Might be worth looking into things that would reduce the pain, like associating the tooltips with their "parent" element via <label> or aria tags, etc.
1 comments

Surely must be done something for this problem. But Popper.js wants just to position your popper in the page. The rest is up to the developer.
Well, given that the api does this:

  var popper = new Popper(referenceElement, onBottomPopper, {
    placement: 'bottom'
  });
Popper.js already knows that referenceElement is the association, so it seems reasonable to consider if it should (maybe optionally) create the <label> or aria association between the two.

Similar for default keybindings that make sense.

I think this feature would be a perfect fit for a Popper.js plugin!