From 9787fe9f0561c5cc4281845dc371727402f7fd61 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 29 Aug 2019 20:13:25 -0700 Subject: [PATCH] fix: length indicator aria-label should not be negative (#1454) --- src/routes/_components/LengthIndicator.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_components/LengthIndicator.html b/src/routes/_components/LengthIndicator.html index a06a94fd..01ef12cb 100644 --- a/src/routes/_components/LengthIndicator.html +++ b/src/routes/_components/LengthIndicator.html @@ -43,7 +43,7 @@ lengthToDisplay: ({ length, max }) => max - length, lengthLabel: ({ overLimit, lengthToDisplayDeferred }) => { if (overLimit) { - return `${lengthToDisplayDeferred} characters over limit` + return `${-lengthToDisplayDeferred} characters over limit` } else { return `${lengthToDisplayDeferred} characters remaining` }