Socket
Socket
Sign inDemoInstall

@sa11y/preset-rules

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sa11y/preset-rules - npm Package Compare versions

Comparing version 6.10.2-alpha.3 to 6.10.2

11

dist/custom-rules/checks.js

@@ -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

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc