Skip to content

Commit 281fa95

Browse files
committed
summary does not map to anything anymore
1 parent d21a25e commit 281fa95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rules/role-supports-aria-props.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ module.exports = {
4444
// - Get the element’s name
4545
const key = {name: getElementType(context, node)}
4646
// - Get the element’s disambiguating attributes
47-
for (const prop of ['aria-expanded', 'type', 'size', 'role', 'href', 'multiple', 'scope']) {
48-
// - Only provide `aria-expanded` when it’s required for disambiguation
49-
if (prop === 'aria-expanded' && key.name !== 'summary') continue
47+
for (const prop of ['type', 'size', 'role', 'href', 'multiple', 'scope']) {
5048
const value = getPropValue(getProp(node.attributes, prop))
5149
if (value) {
5250
if (!('attributes' in key)) {

0 commit comments

Comments
 (0)