question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inline Alert: icon hidden by background

See original GitHub issue

Hey there,

I am trying to implement a Inline Alert (both variants: Success and warning). The problem I have is the following:

Screenshot of Kiali Console (50)

The Icon is hidden behind the background image. It looks like the components puts both icon and backgound in the same color.

modal-inline-alert-bgn-error

<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:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
SpyTeccommented, Oct 4, 2019

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

1reaction
SpyTeccommented, Oct 4, 2019

For my app I’m using something like this, which will include everything that’s needed AFAIK. Which is documented on the website

@import '~@patternfly/patternfly/patternfly.scss';
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found