Closed Alecaddd closed 4 years ago
If you want, you can assign that to me and I will take care of this next week.
@jobisoft that'd be sweet, thank you so much.
Sorry that it took so long: https://developer.thunderbird.net/add-ons/tb78/changes#less-than-textbox-greater-than
I still need help with aria-labelledby=".."
. Was that a supported parameter of the textbox
and we can simply use it with html:input
as well?
The textbox
didn't need that because the label control="textboxID"
was taking care of applying the label name to the textbox field for accessibility purpose.
The simple html:input
field doesn't inherit the label name from the control
attribute, so it needs the aria-labelledby
to reference the label ID.
Looks like the bug to make the a11y association automatic is now fixed. https://bugzilla.mozilla.org/show_bug.cgi?id=1572677
@mkmelin : That means control values of labels are now enough and we do not need the aria-labelledby anymore?
I think so. We might want to get it verified.
Asked in the bug, and we indeed do not need it anymore.
Thanks, than I have all the needed parts on DTN.
Now that daily is free of
<textbox>
elements, it might be helpful to write down a quick HOW-TO guide for add-on developers who might need to do the same.Here's everything I learned while working on this:
aria-labelledby="labelID"
to thehtml:input
for accessibility.input-fields.css
, most likely all the various cases should be covered by those CSS declarations..input-container
on anHBOX
when you need the input field to behave like aflex="1"
as the attributeflex=""
doesn't do anything on the input field, so it can/must be removed.globalOverlay.js
andeditMenuOverlay.js
if the right click (context menu) doesn't work on an input field.type="text"
,type="number"
, etc.textbox
tag name is used for conditions or similar. Eg.if (element.localName == "textbox") {
orgetElementsByTagName("textbox")