We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a7b94f + e566e86 commit 4a872f4Copy full SHA for 4a872f4
src/rules/aria-props.js
@@ -38,14 +38,13 @@ module.exports = {
38
create: (context) => ({
39
JSXAttribute: (attribute) => {
40
const name = propName(attribute);
41
- const normalizedName = name.toLowerCase();
42
43
// `aria` needs to be prefix of property.
44
- if (normalizedName.indexOf('aria-') !== 0) {
+ if (name.indexOf('aria-') !== 0) {
45
return;
46
}
47
48
- const isValid = ariaAttributes.indexOf(normalizedName) > -1;
+ const isValid = ariaAttributes.indexOf(name) > -1;
49
50
if (isValid === false) {
51
context.report({
0 commit comments