Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preferences panel: problematic labels (disconnected from their respective input fields) #1920

Open
phiw13 opened this issue Apr 26, 2024 · 3 comments

Comments

@phiw13
Copy link

phiw13 commented Apr 26, 2024

1/ Missing ID under Advanced options - “Custom form template” and “file_download_header”

<label for="custom_form_types">Custom form template types&nbsp;<a rel="help" title="Help" role="button"[…] >Help</span></a></label> 

<label for="file_download_header">file_download_header</label>

--> The for attribute for both <label />s are referencing a non-existing ID – the relevant <textarea /> only specifies a name attribute, no id.

2/ In other Preferences sub groups (Site and Mail)

Two fields with similar problem: <label /> should not be used here (the radio buttons have a <label /> on the “Yes/No” text), but it probably could use aria-labeled-by as suggested in an other issue)

<label for="trailing_slash">Add a trailing slash to URLs</label>

<label for="enhanced_email">Use enhanced mail features?</label>
@bloatware
Copy link
Member

  1. is easy to fix, 2) is more annoying.

@phiw13
Copy link
Author

phiw13 commented May 10, 2024

@bloatware – Your temp. fix works fine for both issues, as far as I can see. Thanks for that.

As you labeled it “temp” I assume there is some more work that can or should be done?

@bloatware
Copy link
Member

Yes, the second point should be fixed more properly. Currently, all pref input handler names (like yesnoradio) that do not require a common label are hard-coded. As soon as a (new) pref uses a custom handler that is not on the list (like trailing_slash), it gets labelled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants