-
Notifications
You must be signed in to change notification settings - Fork 973
Clicking labels should trigger click of associated element #8243
Comments
Great first bug 🐛 😄 👍 |
I just took a look at this. Making the change to the However, in some other uses, a wrapper component is used which does not provide the label text as a prop to the
Since |
…ed state Partial resolution for brave#8243 since many usages do not use the built-in text but render their own text separately. A subsequent commit will address converting these usages. This also converts text from span to label for accessbility and more appropriate renderer defaults (the cursor).
closes brave#8243 as this ensures all remaining uses of switchControl gain the built-in label click handler. covers the case-sensitivity toggle in findbar, as well as all the switches on the settings page.
…ed state Partial resolution for brave#8243 since many usages do not use the built-in text but render their own text separately. A subsequent commit will address converting these usages. This also converts text from span to label for accessbility and more appropriate renderer defaults (the cursor).
closes brave#8243 as this ensures all remaining uses of switchControl gain the built-in label click handler. covers the case-sensitivity toggle in findbar, as well as all the switches on the preferences page.
Test plan
#10470 (comment)
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Throughout Brave, many controls have an associated label. Clicking these labels doesn't trigger a click of the associated element.
Platform (Win7, 8, 10? macOS? Linux distro?):
Desktop
Brave Version (revision SHA):
61ae1a7
Steps to reproduce:
Actual result:
Nothing happens
Expected result:
The associated element's state toggles
Will the steps above reproduce in a fresh profile? If not what other info can be added?
Yes
Is this an issue in the currently released version?
Yes
Can this issue be consistently reproduced?
Yes
Extra QA steps:
Screenshot if needed:
The text was updated successfully, but these errors were encountered: