fix: length indicator aria-label should not be negative (#1454)
This commit is contained in:
parent
450785ea81
commit
9787fe9f05
|
@ -43,7 +43,7 @@
|
||||||
lengthToDisplay: ({ length, max }) => max - length,
|
lengthToDisplay: ({ length, max }) => max - length,
|
||||||
lengthLabel: ({ overLimit, lengthToDisplayDeferred }) => {
|
lengthLabel: ({ overLimit, lengthToDisplayDeferred }) => {
|
||||||
if (overLimit) {
|
if (overLimit) {
|
||||||
return `${lengthToDisplayDeferred} characters over limit`
|
return `${-lengthToDisplayDeferred} characters over limit`
|
||||||
} else {
|
} else {
|
||||||
return `${lengthToDisplayDeferred} characters remaining`
|
return `${lengthToDisplayDeferred} characters remaining`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue