Skip to content

Commit 4a872f4

Browse files
authored
Merge branch 'master' into chore-update-dependencies
2 parents 1a7b94f + e566e86 commit 4a872f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rules/aria-props.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ module.exports = {
3838
create: (context) => ({
3939
JSXAttribute: (attribute) => {
4040
const name = propName(attribute);
41-
const normalizedName = name.toLowerCase();
4241

4342
// `aria` needs to be prefix of property.
44-
if (normalizedName.indexOf('aria-') !== 0) {
43+
if (name.indexOf('aria-') !== 0) {
4544
return;
4645
}
4746

48-
const isValid = ariaAttributes.indexOf(normalizedName) > -1;
47+
const isValid = ariaAttributes.indexOf(name) > -1;
4948

5049
if (isValid === false) {
5150
context.report({

0 commit comments

Comments
 (0)