@sa11y/preset-rules
Advanced tools
Comparing version 6.12.0 to 6.12.1
@@ -18,3 +18,3 @@ "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; }", | ||
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); } if (style.getPropertyValue('display') === '-webkit-box' && style.getPropertyValue('-webkit-line-clamp') != 0 && style.getPropertyValue('overflow') === 'hidden' && style.getPropertyValue('-webkit-box-orient') === 'vertical') { function isTextTruncated(element) { const isTruncated = (element.scrollWidth>element.clientWidth); return isTruncated; } return !isTextTruncated(node); } return true; }", | ||
metadata: { | ||
@@ -21,0 +21,0 @@ impact: 'moderate', |
@@ -23,3 +23,9 @@ "use strict"; | ||
all: [], | ||
tags: ['custom'], | ||
metadata: { | ||
description: 'Ensure Ellipses are not present as text is truncated.', | ||
help: 'Text elements do not have ellipsis as text is truncated.', | ||
helpUrl: 'https://example.com/custom-rule-help', | ||
impact: 'moderate', | ||
tags: ['wcag1410', 'custom'], | ||
}, | ||
}, | ||
@@ -26,0 +32,0 @@ ]; |
{ | ||
"name": "@sa11y/preset-rules", | ||
"version": "6.12.0", | ||
"version": "6.12.1", | ||
"description": "Accessibility preset rule configs for axe", | ||
@@ -24,3 +24,3 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@sa11y/common": "6.12.0" | ||
"@sa11y/common": "6.12.1" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "94bc67b4c358064439d640062a2d54e9edb79490" | ||
"gitHead": "2da71dd987b8f13e0a07a14c205282c1e978feea" | ||
} |
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
78334
667
+ Added@sa11y/common@6.12.1(transitive)
- Removed@sa11y/common@6.12.0(transitive)
Updated@sa11y/common@6.12.1