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

eslint-plugin-orbit-components

Package Overview
Dependencies
Maintainers
16
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-orbit-components - npm Package Compare versions

Comparing version 0.2.0-develop.1 to 0.2.0

4

dist/rules/buttonHasTitle.js

@@ -92,3 +92,3 @@ "use strict";

node: node,
message: "Property children or title property is missing on ".concat(localName, ". ") + "Use title property to add aria-label to be accessible for screen readers."
message: "".concat(localName, " doesn't have children. Please provide title property to add aria-label, so it's accessible for screen readers.")
});

@@ -104,3 +104,3 @@ });

node: node,
message: "Property children or title property is missing on ".concat(localName, ". ") + "Use title property to add aria-label to be accessible for screen readers."
message: "".concat(localName, " doesn't have children. Please provide title property to add aria-label, so it's accessible for screen readers.")
});

@@ -107,0 +107,0 @@ }

# button-has-title
To make `Button` or `ButtonLink` accessible for screen readers, it's necessary to either pass `children` or `title` property to it.
`Button` or `ButtonLink` without children needs to be accessible for screen readers, therefore it's necessary to pass `title` property to it.

@@ -5,0 +5,0 @@ ## Rule details

{
"name": "eslint-plugin-orbit-components",
"version": "0.2.0-develop.1",
"version": "0.2.0",
"description": "Collection of ESLint rules to enforce the best usage practices of @kiwicom/orbit-components",

@@ -5,0 +5,0 @@ "repository": {

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