Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sa11y/preset-rules

Package Overview
Dependencies
Maintainers
0
Versions
81
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.12.0 to 6.12.1

2

dist/custom-rules/checks.js

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

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