Skip to content

fix(section): apply text-muted color to static icon elements in header#8071

Open
ggdouglas wants to merge 1 commit intodevelopfrom
gd/section-static-icon-styling
Open

fix(section): apply text-muted color to static icon elements in header#8071
ggdouglas wants to merge 1 commit intodevelopfrom
gd/section-static-icon-styling

Conversation

@ggdouglas
Copy link
Copy Markdown
Contributor

@ggdouglas ggdouglas commented Apr 17, 2026

Summary

Section headers lose their bp6-text-muted color when icon is a JSX element because <Icon> passes elements through unchanged. Wrap element icons in a <span class="bp6-text-muted"> so the header icon color is consistent regardless of icon type.

This was discovered during research on #8065

Code

import { Section } from "@blueprintjs/core";

// dynamic
<Section icon="cog" title="Settings" />
import { Section } from "@blueprintjs/core";
import { Cog } from "@blueprintjs/icons";

// static
<Section icon={<Cog />} title="Settings" />

Screenshots

Before After
section-before section-after

Diff

section-diff

@changelog-app
Copy link
Copy Markdown

changelog-app Bot commented Apr 17, 2026

Generate changelog in packages/core/changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

fix(section): apply text-muted color to static icon elements in header

Check the box to generate changelog(s)

  • Generate changelog entry

@blueprint-previews
Copy link
Copy Markdown

fix(section): apply text-muted color to static icon elements in header

Build artifact links for this commit: documentation | landing | table | demo | storybook

This is an automated comment from the deploy-preview CircleCI job.

@changelog-app
Copy link
Copy Markdown

changelog-app Bot commented Apr 17, 2026

Successfully generated changelog entry!

Need to regenerate?

Simply interact with the changelog bot comment again to regenerate these entries.


📋Changelog Preview

🐛 Fixes

  • fix(section): apply text-muted color to static icon elements in header (#8071)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant