Page MenuHomePhabricator

Re-evaluate TextInputWidget (autosize)‎ containing two form element within one label
Closed, InvalidPublic

Description

TextInputWidget (autosize; as of v0.17.9) contains two textarea elements within one label. In assistive technology that might result in loosing focus.

Event Timeline

The two textareas are an implementation detail. As the second one is (most of the time) hidden and therefore not focusable, I think this is unlikely to be a problem in practice.

We should make sure, that not setting aria-disabled: true on one of the two isn't causing issues with assistive technology.
Also appending to the DOM later could be an option.

I'm not exactly sure what has originally been the case here, but one of the inputs as of v0.29.6 is assigned oo-ui-element-hidden and aria-hidden=true, it doesn't get an id which is connected to the label – so it's definitely ignored by screen readers.