A11Y001warningPro

button-contrast

Text color may conflict with background color

Applies to: JavaScript, TypeScript

Why this matters

Outline and ghost button variants have light backgrounds by default. Using text-white without overriding the background (e.g., bg-transparent) can result in invisible text. Add an explicit background class to fix.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, A11Y001 includedstablestack explain A11Y001

A11Y001 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: A11Y001