Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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
Feature/gh 1733/legal updates #414
Feature/gh 1733/legal updates #414
Changes from 1 commit
a2e47625a1f223466dd6384e44bbc00031f5276732cbeafde2f8662d8ab9c4f779923801f49c4e8232acda542fa30d725ab5a99d387279fd9eaa3aeFile filter
Jump to
Reverse order of checkboxes in extension account creation form to mat…
christophertinoJul 17, 2019
Member
Do we still need this lint exclusion?
wlycdgrJul 18, 2019
•
edited
Author
Member
Without it, the jsx-a11y linter plugin complains that "A form label must be associated with a control". It thinks the label is empty because we are using dangerouslySetInnerHTML attribute to set the text instead of inserting the string directly into the tag as with the promotions checkbox. But if we don't use dangerouslySetInnerHTML, the links in the string are displayed as plain text HTML.
This feels almost like a bug / unaccounted-for use case in the interaction between React and the linter plugin. Given that, I think this is a case where disabling the linter is the lesser of two evils, the other option being changing the checkbox implementation and probably making it more complicated and inconsistent with the promotions checkbox implementation. What do you think?