Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon Button: icon-color attribute does not work #1461

Closed
2 tasks done
georg-adler opened this issue Sep 6, 2024 · 1 comment
Closed
2 tasks done

Icon Button: icon-color attribute does not work #1461

georg-adler opened this issue Sep 6, 2024 · 1 comment
Labels
triage We discuss this topic in our internal weekly

Comments

@georg-adler
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

I'm using icon buttons in my app and would like to customize the icon color. For that i set the icon-color attribute like this:

<ix-icon-button icon="info" variant="primary" icon-color="#01d65a"></ix-icon-button>

The icon still has the default color.

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

v2.4.1

Code to produce this issue.

https://stackblitz.com/edit/rkgdsn?file=src%2Fapp%2Fbutton-with-icon.html
@georg-adler georg-adler added the triage We discuss this topic in our internal weekly label Sep 6, 2024
@nuke-ellington
Copy link
Collaborator

Hello @georg-adler, thank you for reaching out.

Please use one of the predefined color names from the library.

E.g.:

icon-color="color-warning"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage We discuss this topic in our internal weekly
Projects
None yet
Development

No branches or pull requests

2 participants