Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions lib/standards/aria-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ const imgRole = {
childrenPresentational: true
};

// Shared definition for the none and presentation roles, so the two entries
// stay in sync.
const noneRole = {
type: 'structure',
superclassRole: ['structure'],
prohibitedAttrs: ['aria-label', 'aria-labelledby']
};

const ariaRoles = {
alert: {
type: 'structure',
Expand Down Expand Up @@ -462,9 +470,7 @@ const ariaRoles = {
superclassRole: ['landmark']
},
none: {
type: 'structure',
superclassRole: ['structure'],
prohibitedAttrs: ['aria-label', 'aria-labelledby']
...noneRole
},
note: {
type: 'structure',
Expand Down Expand Up @@ -495,9 +501,7 @@ const ariaRoles = {
prohibitedAttrs: ['aria-actions', 'aria-label', 'aria-labelledby']
},
presentation: {
type: 'structure',
superclassRole: ['structure'],
prohibitedAttrs: ['aria-label', 'aria-labelledby']
...noneRole
},
Comment thread
chutchins25 marked this conversation as resolved.
progressbar: {
type: 'widget',
Expand Down
Loading