You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going to the landing page of a Mattermost instance, I am given the options "View in Desktop App" and "View in Browser" with a checkbox "Remember my preference".
Clicking on "Remember my preference" does not tick the associated checkbox: one needs to click exactly on the checkbox. This a sign for a missing <label> which goes against the guidelines from the Web Accessibility Initiative. This can impair keyboard navigation or screen reader usage for instance.
The DOM structure there is indeed:
<divclass="get-app__preference"><buttonclass="get-app__checkbox "></button><span>Remember my preference</span></div>
Steps to reproduce
Observed on the landing page of a Mattermost instance (Team edition version 9.7).
Expected behavior
Clicking on the text "Remember my preference" should check / uncheck the associated checkbox.
Observed behavior (that appears unintentional)
Only clicking on the checkbox works.
Possible fixes
Adding the missing <label> element (see guidelines above).
The text was updated successfully, but these errors were encountered:
wetneb
added a commit
to wetneb/mattermost
that referenced
this issue
Apr 5, 2024
Summary
When going to the landing page of a Mattermost instance, I am given the options "View in Desktop App" and "View in Browser" with a checkbox "Remember my preference".
Clicking on "Remember my preference" does not tick the associated checkbox: one needs to click exactly on the checkbox. This a sign for a missing
<label>
which goes against the guidelines from the Web Accessibility Initiative. This can impair keyboard navigation or screen reader usage for instance.The DOM structure there is indeed:
Steps to reproduce
Observed on the landing page of a Mattermost instance (Team edition version 9.7).
Expected behavior
Clicking on the text "Remember my preference" should check / uncheck the associated checkbox.
Observed behavior (that appears unintentional)
Only clicking on the checkbox works.
![remember_my_pref](https://private-user-images.githubusercontent.com/309908/320137373-fe227b82-730d-414d-92f7-eb6677c3f5d2.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MjA4MTksIm5iZiI6MTcyMTgyMDUxOSwicGF0aCI6Ii8zMDk5MDgvMzIwMTM3MzczLWZlMjI3YjgyLTczMGQtNDE0ZC05MmY3LWViNjY3N2MzZjVkMi5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQxMTI4MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NzVlZmNjNjk4MzYxNTE5NDM4ZDllNjNhNTIyZTFlYjBhYWVjZmEyOTRhMTk5MjExNjM1Y2Y3ZGRiYzM0OTVkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RQbNaAjHf1LicO_jAReU4itqhudjOXW9b6GwMVj_8mU)
Possible fixes
Adding the missing
<label>
element (see guidelines above).The text was updated successfully, but these errors were encountered: