thunderbird / developer-docs

Developer documentation for Thunderbird contributors.
https://developer.thunderbird.net
82 stars 77 forks source link

Add <textbox> to <html:input> conversion quick guide. #50

Closed Alecaddd closed 4 years ago

Alecaddd commented 5 years ago

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:

jobisoft commented 5 years ago

If you want, you can assign that to me and I will take care of this next week.

Alecaddd commented 5 years ago

@jobisoft that'd be sweet, thank you so much.

jobisoft commented 4 years ago

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 textboxand we can simply use it with html:input as well?

Alecaddd commented 4 years ago

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.

mkmelin commented 4 years ago

Looks like the bug to make the a11y association automatic is now fixed. https://bugzilla.mozilla.org/show_bug.cgi?id=1572677

jobisoft commented 4 years ago

@mkmelin : That means control values of labels are now enough and we do not need the aria-labelledby anymore?

mkmelin commented 4 years ago

I think so. We might want to get it verified.

mkmelin commented 4 years ago

Asked in the bug, and we indeed do not need it anymore.

jobisoft commented 4 years ago

Thanks, than I have all the needed parts on DTN.