-
Notifications
You must be signed in to change notification settings - Fork 17
DBIcon prop variant is not evaluated #6310
Copy link
Copy link
Open
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community
Description
Which generators are affected?
- All
- HTML
- React
- Angular
- Vue
- Web components
- Power Apps
Reproduction case
I noticed that setting the variant has no effect (Noticed it in React, but probably other frameworks are affected as well):
<DBIcon icon="exclamation_mark_triangle" variant="filled" />See: https://codesandbox.io/p/devbox/cold-silence-d5zg66?file=%2Fsrc%2FApp.tsx%3A13%2C1
Expected Behaviour
The Filled prop should be evaluated and applied for the icon. The used icon generally has a filled variant as proved here:
https://design-system.deutschebahn.com/core-web/version/v4.5.3/foundations/icons/overview
Screenshots
No response
Browser version
None
Add any other context about the problem here.
A workaround for now is to set the variant via CSS which only works when the property variant="filled" is not passed:
.my-filled-icon {
--db-icon-font-family: "db-filled";
}Which DB business unit do you work for?
DB Systel GmbH (please name your customer below)
”DB Systel” please enter your customer / ”other” please enter your area or business unit.
DB InfraGo
What project are you working on?
M4A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
👩👧👦communityFeedbackFeedback from communityFeedback from community
Type
Projects
Status
🎶 Waiting for feedback