@sa11y/preset-rules
Advanced tools
Comparing version 6.10.2-alpha.3 to 6.10.2
@@ -16,4 +16,15 @@ "use strict"; | ||
}, | ||
{ | ||
id: 'Resize-reflow-textoverflow-check', | ||
evaluate: "function (node) {const style = window.getComputedStyle(node); const tabIndex = node.getAttribute('tabindex'); if (tabIndex === '-1' && node.actualNode && !isVisibleOnScreen(node) && !isVisibleToScreenReaders(node)) { return false; } if (node.innerText === '') { return false; } if (style.getPropertyValue('text-overflow') === 'ellipsis') { function isTextTruncated(element) {const isTruncated = (element.scrollWidth > element.clientWidth); return isTruncated; } return !isTextTruncated(node); } return true; }", | ||
metadata: { | ||
impact: 'moderate', | ||
messages: { | ||
pass: 'Text element does not have ellipses ', | ||
fail: 'Text element have ellipses which make difficulty to read', | ||
}, | ||
}, | ||
}, | ||
]; | ||
exports.default = checkData; | ||
//# sourceMappingURL=checks.js.map |
@@ -17,4 +17,12 @@ "use strict"; | ||
}, | ||
{ | ||
id: 'Resize-reflow-textoverflow', | ||
selector: '*', | ||
enabled: true, | ||
any: ['Resize-reflow-textoverflow-check'], | ||
all: [], | ||
tags: ['custom'], | ||
}, | ||
]; | ||
exports.default = rulesData; | ||
//# sourceMappingURL=rules.js.map |
{ | ||
"name": "@sa11y/preset-rules", | ||
"version": "6.10.2-alpha.3", | ||
"version": "6.10.2", | ||
"description": "Accessibility preset rule configs for axe", | ||
@@ -24,3 +24,3 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@sa11y/common": "6.10.2-alpha.3" | ||
"@sa11y/common": "6.10.2" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "d4ef2132111101a7107bf506689cbc1ae421bd58" | ||
"gitHead": "65768ad5f397356dcebdcd79f8459d4f3fd9d5a0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
74119
593
0
+ Added@sa11y/common@6.10.2(transitive)
- Removed@sa11y/common@6.10.2-alpha.3(transitive)
Updated@sa11y/common@6.10.2