Inline Alert: icon hidden by background
See original GitHub issueHey there,
I am trying to implement a Inline Alert (both variants: Success and warning). The problem I have is the following:
The Icon is hidden behind the background image. It looks like the components puts both icon and backgound in the same color.
<Alert
title="Debug information has been copied to your clipboard."
variant={AlertVariant.success}
isInline={true}
action={<AlertActionCloseButton onClose={this.hideAlert} />}
/>
<Alert
title="Debug information was copied to your clipboard, but is outdated now. It could be caused by new data received by auto refresh timers."
variant={AlertVariant.warning}
isInline={true}
action={<AlertActionCloseButton onClose={this.hideAlert} />}
/>
After unmarking the background property from .pf-c-alert__icon
, the Alert is properly rendered.
Am I doing something wrong?
Thank you,
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
On taskbar, time, speakers and hidden icons arrow turned dark
The time/calendar and notification background remain dark. Is that the default. A question about the synced photo theme. What does that big ...
Read more >html - Alert - offset icon, header and body text - Stack Overflow
I am trying to create a system alert message ...
Read more >Alerts · Bootstrap v5.0
For inline dismissal, use the alerts JavaScript plugin. A simple primary alert—check it out! A simple secondary alert—check it out!
Read more >Inline icons in buttons or headlines or texts | Justinmind Q&A
Is there a hidden trick, how to edit like the innerHTML of a button or a text? You can try setting a background...
Read more >How To Create an Alert Message Box - W3Schools
If you want the ability to close the alert message, add a <span> element with an onclick attribute that says "when you click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PF3 has different classes for alerts so that wouldn’t be the problem. I would put my bets on the project importing PF4 CSS in an incorrect manner or if you’re importing multiple things from PF4, that it’s in the wrong order
For my app I’m using something like this, which will include everything that’s needed AFAIK. Which is documented on the website