Problem/Motivation

When a user exceeds the character limit, the countdown number turns red. This color of red has a contrast ratio of 4.1:1. But AA for regular text requires a contrast ration of at least 4.5:1 . Large text is at least 24px and bold text at least 18.5 pixels.

The text is 16 pixels and with a font-weight of bold. So 18,5 pixel would be required for a bold font to satisfy at least the AA criteria.

Steps to reproduce

Set a Maxlength on a formatted text field.

Type past the limit and notice the negative countdown message.

Proposed resolution

Set the red color to #C01C28 for a better contrast ratio.

Comments

cedewey created an issue. See original summary.

cedewey’s picture

Here's a patch for this.

cedewey’s picture

Status: Active » Needs review
cedewey’s picture

Assigned: Unassigned » hipp2bsquare

Assigning to Jeff to review.

  • hipp2bsquare committed 300ed07 on 2.0.x authored by cedewey
    Issue #3259477 by cedewey: Make red character countdown font color...
hipp2bsquare’s picture

Status: Needs review » Fixed

Looks good -- committed to the project.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.