Skip to content

feat(dialog): allow dialogs to inherit theme colors - #43425

Open
Tanbir-Hasan-247 wants to merge 3 commits into
twbs:mainfrom
Tanbir-Hasan-247:feat/dialog-theme-colors
Open

Tanbir-Hasan-247 wants to merge 3 commits into
twbs:mainfrom
Tanbir-Hasan-247:feat/dialog-theme-colors

Conversation

@Tanbir-Hasan-247

Copy link
Copy Markdown

Description

Allow <dialog> components to inherit .theme-* colors automatically:

  • Added --dialog-inner-border-radius, --dialog-header-color, and --dialog-header-bg tokens to $dialog-tokens in scss/_dialog.scss.
  • Updated .dialog border color to use var(--theme-bg, var(--dialog-border-color)).
  • Updated .dialog-header to inherit color: var(--theme-contrast, var(--dialog-header-color)), background-color: var(--theme-bg, var(--dialog-header-bg)), and border-block-end color from --theme-bg, with top border-radius (--dialog-inner-border-radius) when :first-child, and color: inherit on .btn-close (including :hover).
  • Added a Theme colors section and example to site/src/content/docs/components/dialog.mdx.

Type of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the contributing guidelines
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly

Related issues

Closes #43401

@Tanbir-Hasan-247
Tanbir-Hasan-247 requested a review from a team as a code owner November 20, 2026 14:53
@julien-deramond julien-deramond added v6 v6, the main branch css Sass sources or compiled CSS docs Documentation site and its content feature New feature, or a change to how an existing one works html Component markup: elements, attributes, structure needs-decision A maintainer decides first: scope, design or breaking change labels Nov 20, 2026
@julien-deramond julien-deramond added has-conflicts Conflicts with its base branch: needs a rebase and removed needs-decision A maintainer decides first: scope, design or breaking change labels Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css Sass sources or compiled CSS docs Documentation site and its content feature New feature, or a change to how an existing one works has-conflicts Conflicts with its base branch: needs a rebase html Component markup: elements, attributes, structure v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v6: allow dialogs to inherit theme colours

2 participants