-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community
Description
Which generators are affected?
- All
- HTML
- React
- Angular
- Vue
- Web components
- Power Apps
Reproduction case
We noticed some issues when using the Icons as foundations.
- Changing the variant to filled did not work on the Icon Information Circle. In your Showcase, it supports both variants. But setting it via:
<DBIcon icon={"information_circle"} variant="filled" />
This doesn't work. But setting it via the style props works.
<DBIcon icon={"information_circle"} style={{ "--db-icon-font-family": "db-filled" }} />
- This is not a specific bug. It's more about the handling with the Icons. We would prefer specific props to change the variant, color and size of the Icon instead of manually changing its style. Currently, we are using the Icon like this:
<DBIcon
icon={iconName}
style={{
"--db-icon-color": iconColor,
"--db-icon-font-family": "db-filled",
"--db-icon-font-size": "16px",
}}
/>
Expected Behaviour
- Setting the variant should change to fill the given Icon.
- We expect the behavior like:
<DBIcon
icon={"iconName"}
color={"iconColor"}
size={"size"}
variant={"filled"}
/>
Screenshots
No response
Browser version
Chrome
Add any other context about the problem here.
When there are specific props that can be passed into a component, it would be nice if there is an example and a list with the given props. Like in the components section of your showcase.
Metadata
Metadata
Assignees
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community
Type
Projects
Status
🕋 In progress