Skip to content

fix: align disabled Textarea text color with disabled Input#514

Open
msmx-mnakagawa wants to merge 1 commit intomasterfrom
fix-disabled-textarea-color
Open

fix: align disabled Textarea text color with disabled Input#514
msmx-mnakagawa wants to merge 1 commit intomasterfrom
fix-disabled-textarea-color

Conversation

@msmx-mnakagawa
Copy link
Collaborator

Summary

  • Override color for .slds-textarea[disabled] to match .slds-input[disabled] using registerStyle()
  • SLDS sets color: inherit for disabled Textarea while disabled Input gets var(--slds-g-color-neutral-base-50, #444), causing inconsistent text color

Closes #513

🤖 Generated with Claude Code

SLDS sets `color: inherit` for `.slds-textarea[disabled]` while
`.slds-input[disabled]` gets an explicit muted color via
`var(--slds-g-color-neutral-base-50)`. This causes disabled Textarea
text to appear at full contrast, unlike disabled Input.

Override the color using `registerStyle()` to match the Input behavior.

This is a workaround for a suspected SLDS inconsistency.
Remove if SLDS addresses it upstream.

Closes #513

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@reg-suit
Copy link

reg-suit bot commented Mar 11, 2026

✨✨ That's perfect, there is no visual difference! ✨✨

Check out the report here.

@msmx-mnakagawa msmx-mnakagawa self-assigned this Mar 11, 2026
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.

Disabled Textarea text color inconsistent with disabled Input

1 participant