We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
summary
1 parent d21a25e commit 281fa95Copy full SHA for 281fa95
1 file changed
lib/rules/role-supports-aria-props.js
@@ -44,9 +44,7 @@ module.exports = {
44
// - Get the element’s name
45
const key = {name: getElementType(context, node)}
46
// - 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
+ for (const prop of ['type', 'size', 'role', 'href', 'multiple', 'scope']) {
50
const value = getPropValue(getProp(node.attributes, prop))
51
if (value) {
52
if (!('attributes' in key)) {
0 commit comments