Skip to content

chore: Add color prop to container style API#4399

Open
jkuelz wants to merge 1 commit intomainfrom
jkuelz-container-styles
Open

chore: Add color prop to container style API#4399
jkuelz wants to merge 1 commit intomainfrom
jkuelz-container-styles

Conversation

@jkuelz
Copy link
Copy Markdown
Member

@jkuelz jkuelz commented Mar 30, 2026

Description

Adds color prop to container's style.root property.

We allow changing the background color, so to enable accessible color combinations we should allow the default color to be changed as well. This allows components like Box to be used with color="inherit" and inherit the color defined.

P0 item from Venue sign-off.

Related links, issue #, if available: QuipZjcAA3fghsSF

How has this been tested?

Added an example to the custom-styles dev page for visual regression testing.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jkuelz jkuelz requested a review from mxschll March 30, 2026 17:33
@jkuelz jkuelz requested a review from a team as a code owner March 30, 2026 17:33
@mxschll
Copy link
Copy Markdown
Member

mxschll commented Mar 30, 2026

The snapshots need updating 😞

@jkuelz jkuelz force-pushed the jkuelz-container-styles branch from 115ba61 to 65ac0ee Compare March 31, 2026 01:29
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