Skip to content

Icon color does not inherit parent text color when host color is overridden #568

@georgianastasov

Description

@georgianastasov

Description

When the text color is overridden on a button host, the nested igx-icon does not inherit that color and may render with a different color than the button label.

For example, if the button host is styled with:

color: #ffffff;

the button text becomes white, but the icon can still keep its own color instead of matching the text.

This creates visual inconsistency in buttons and makes styling less intuitive, because overriding the host color reasonably suggests that both the text and the icon should follow the same foreground color unless the icon color is explicitly customized.

Expected result

Both the button text and the nested icon use the same color.
In this case, both should be white.

Actual result

The button text is white, but the icon remains a different color.

Notes

It looks like the icon color is controlled separately from the parent text color, so changing color on the button host affects the label but does not automatically affect the nested igx-icon.

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions