-
Notifications
You must be signed in to change notification settings - Fork 784
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
feat(rule): Inline text spacing must be adjustable with custom stylesheets #1446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@straker as you have approved this, you will have to fill out the review checks above. |
"impact": "serious", | ||
"messages": { | ||
"pass": "No inline styles that affect text spacing has been specified", | ||
"fail": "Inline styles that affect text spacing has been specified" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to include what style props are failing. Something like:
Remove
!important
from inline styles {= data =}, as overriding this not supported by most browsers
lib/rules/avoid-inline-spacing.json
Outdated
"tags": ["wcag21", "wcag1412"], | ||
"metadata": { | ||
"description": "Ensure text spacing is not affected by inline spacing styles that affects CSS specificity", | ||
"help": "Remove inline styles with '!important' that affect text spacing, as overriding this is not supported by most browsers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a little more editing. I think the pass / fail ones are good. Can you change help/description to:
Description: Ensure that test spacing set through style attributes can be adjusted with custom stylesheets
Help: Inline text spacing must be adjustable with custom stylesheets
The browser thing is part of the fail message, we don't need to repeat that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed for security.
* develop: (50 commits) docs: add jsdom example and tests (dequelabs#1530) fix(aria-valid-attr-value): allow aria-owns to pass when element is not in the DOM (dequelabs#1526) fix(isSkipLink): cache first page link (dequelabs#1525) chore: update Babel dependencies (dequelabs#1527) chore(package): Update karma to version 4.1.0 (dequelabs#1528) feat: Improve perf of axe.run [WWD-1821] (dequelabs#1503) fix(prettier): ignore generated api doc files (dequelabs#1522) fix(skip-link,region): Allow multiple skiplinks at page top (dequelabs#1496) fix(raw-reporter): do not output `DqElement`s (dequelabs#1513) fix: Scroll state had top and left properties flipped (dequelabs#1469) refactor: commons.color.getBackgroundColor method (dequelabs#1451) fix(aria-valid-attr-value): allow aria-controls to pass when element is not in the DOM chore: Update husky to the latest version 🚀 (dequelabs#1514) style: format HTML files with Prettier (dequelabs#1508) test: Fix invalid test html (dequelabs#1502) feat(rule): Inline text spacing must be adjustable with custom stylesheets (dequelabs#1446) chore: Remove version number from axe.d.ts (dequelabs#1499) chore: Update make-dir to the latest version 🚀 (dequelabs#1465) fix: Exclude iframe for html-has-lang rule (Issue 1424) (dequelabs#1430) feat(utils): add support for complex CSS selectors (dequelabs#1494) ...
Ensure text spacing is not affected by inline spacing styles that affects CSS specificity
Closes issue:
Note: to make sure to make it clear in the failure message that this is due to limited support for custom stylesheets.
Reviewer checks
Required fields, to be filled out by PR reviewer(s)