Skip to content

Commit

Permalink
Update warning
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Kilgore <[email protected]>
  • Loading branch information
davwheat and tankerkiller125 authored Jul 21, 2021
1 parent 61c2307 commit 71f42f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/common/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class Button extends Component<ButtonAttrs> {

if (!ariaLabel && !extractText(vnode.children) && !this.element?.getAttribute?.('aria-label')) {
fireDebugWarning(
'[Flarum Accessibility Warning] This button has no content but does not have any accessible label. This means that screen-readers will not be able to interpret its meaning. Consider providing accessible text via the `aria-label` attribute.\n\nLearn more: https://web.dev/button-name',
'[Flarum Accessibility Warning] This button has no content and does not have any accessible label. This means that screen-readers will not be able to interpret its meaning. Consider providing accessible text via the `aria-label` attribute.\n\nLearn more: https://web.dev/button-name',
this.element
);
}
Expand Down

0 comments on commit 71f42f0

Please sign in to comment.