Skip to content

TextArea: grey placeholder, matching TextInput (2.6.3) - #132

Merged
DerekAgility merged 1 commit into
mainfrom
dlo/textarea-placeholder-color
Oct 21, 2026
Merged

DerekAgility merged 1 commit into
mainfrom
dlo/textarea-placeholder-color

Conversation

@DerekAgility

Copy link
Copy Markdown
Contributor

Summary

TextArea gave an enabled field no placeholder colour (only disabled:placeholder:text-gray-300), so the placeholder took the typed-text colour and looked like real content.

  • Field: both textarea branches (with and without a label) now add placeholder:text-gray-500, the class TextInput uses. TextInput/InputField set no explicit typed-text colour, so the value colour is unchanged.
  • Disabled: still gray-300. The generated rule .disabled\:placeholder\:text-gray-300:disabled::placeholder is more specific than .placeholder\:text-gray-500::placeholder and comes later in the CSS, so it wins regardless of class order (TextArea uses classnames, not tailwind-merge, so both classes stay on the element).

Bumps the version to 2.6.3 and adds a CHANGELOG entry.

Testing

  • tsc --noEmit --skipLibCheck is clean.
  • vitest run: 112/112 pass, including 3 new TextArea tests (placeholder class with and without a label, and the disabled class kept alongside it).
  • yarn build and yarn lint pass; checked the generated dist/tailwind.css for both rules and their selectors.
  • Not yet checked visually in Storybook.

🤖 Generated with Claude Code

TextArea set no placeholder colour on an enabled field, only
disabled:placeholder:text-gray-300, so the placeholder took the
typed-text colour and looked like real content.

Both textarea branches (with and without a label) now add
placeholder:text-gray-500, the same class TextInput uses. TextInput
sets no explicit typed-text colour, so nothing else changes. The
disabled rule (.disabled\:placeholder\:text-gray-300:disabled::placeholder)
is more specific than the new one, so disabled fields still show gray-300.

Adds TextArea tests and bumps the version to 2.6.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
plenum-ui Ready Ready Preview Oct 21, 2026 1:10pm UTC

Request Review

@DerekAgility
DerekAgility merged commit 12c3dd0 into main Oct 21, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — ed9e35b7 Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants