Updated character counter color

This commit is contained in:
Peter Zimon 2021-07-08 15:15:49 +02:00
parent 7184b94a15
commit 807cfb8fa7
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export function countDownCharacters(params) {
if (length > maxCharacters) {
el.style.color = '#E25440';
} else {
el.style.color = '#9FBB58';
el.style.color = '#30CF43';
}
el.innerHTML = length;

View File

@ -3,7 +3,7 @@ import {describe, it} from 'mocha';
import {expect} from 'chai';
describe('Unit: Helper: gh-count-down-characters', function () {
let validStyle = 'color: rgb(159, 187, 88);';
let validStyle = 'color: rgb(48, 207, 67);';
let errorStyle = 'color: rgb(226, 84, 64);';
it('counts chars', function () {