From 71f42f07e533cc100d1a028580dc3136bbbbad27 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Wed, 21 Jul 2021 09:44:01 +0100 Subject: [PATCH] Update warning Co-authored-by: Matt Kilgore --- js/src/common/components/Button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/common/components/Button.tsx b/js/src/common/components/Button.tsx index 2dce1fe175..c4a4890979 100644 --- a/js/src/common/components/Button.tsx +++ b/js/src/common/components/Button.tsx @@ -93,7 +93,7 @@ export default class Button extends Component { 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 ); }