diff options
author | Sasha Sorokin <10401817+Brawaru@users.noreply.github.com> | 2022-11-08 17:31:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 17:31:32 +0100 |
commit | d055d751720b7494ba990a43434b73e17596b5e8 (patch) | |
tree | 71b6c1be454445f8eb5eb29080ea809c0cc0e28e /app/javascript/mastodon/components/icon_button.js | |
parent | d70303bba617b2ff1884714dd6dc69a3bd6e41a4 (diff) |
Remove aria-pressed where it's redundant (#19912)
This commit removes aria-pressed attribute from all elements which contents or other descriptive attributes change in active state, effectively replacing the meaning of the button, in which case aria-pressed, an attribute specified whether the button is currently pressed, would create a confusion. (Spoiler: it's everywhere). See https://github.com/mastodon/mastodon/issues/13545#issuecomment-1304886969
Diffstat (limited to 'app/javascript/mastodon/components/icon_button.js')
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index 8fd9e10c0..49858f2e2 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -16,7 +16,6 @@ export default class IconButton extends React.PureComponent { onKeyPress: PropTypes.func, size: PropTypes.number, active: PropTypes.bool, - pressed: PropTypes.bool, expanded: PropTypes.bool, style: PropTypes.object, activeStyle: PropTypes.object, @@ -98,7 +97,6 @@ export default class IconButton extends React.PureComponent { icon, inverted, overlay, - pressed, tabIndex, title, counter, @@ -143,7 +141,6 @@ export default class IconButton extends React.PureComponent { <button type='button' aria-label={title} - aria-pressed={pressed} aria-expanded={expanded} title={title} className={classes} |