eslint-plugin-orbit-components
Advanced tools
Comparing version 0.2.0-develop.1 to 0.2.0
@@ -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
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
215216