Skip to content

Conversation

@brendan-vincent-rice
Copy link
Member

@brendan-vincent-rice brendan-vincent-rice commented Dec 22, 2025

Related Issue: #13056

Summary

This PR enables support in the Icon component for the deprecated --calcite-ui-icon-color variable. An end-to-end test already exists.

@brendan-vincent-rice brendan-vincent-rice self-assigned this Dec 22, 2025
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 22, 2025
@brendan-vincent-rice brendan-vincent-rice added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 22, 2025
Copy link
Contributor

@anveshmekala anveshmekala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this is required. color is applied at host with text-color-icon tailwind class.

Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@brendan-vincent-rice
Copy link
Member Author

brendan-vincent-rice commented Jan 14, 2026

Don't think this is required. color is applied at host with text-color-icon tailwind class.

@anveshmekala Great catch! Yes, this PR isn't necessary so I'll close it.

Line 53 of packages/tailwind-preset/src/index.ts already includes support for the deprecated --calcite-ui-icon-color variable.

icon: "var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))",

The following CodePen demonstrates this:

https://codepen.io/brendan___rice/pen/ByzQXRZ?editors=1000

@brendan-vincent-rice
Copy link
Member Author

This PR can be closed. The icon component already has support for the deprecated variable.

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

Labels

bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants