Transparent Dialog

UI Components for React
Post Reply
TerryOS
Posts: 2
Joined: 18 May 2018, 17:00

14 May 2020, 15:48

Hi,

I'm using the Ultima template with my own theme, and I'm trying to make use the the Dialog window, however whenever I launch it, the opacity appears to be incorrect. I've updated to PrimeReact 4.2.1, previously I was on version 3.4, but its made no difference.

Image

I have tried explicity setting the opacity to 1 on the dialog but that makes no difference.

Thanks!

TerryOS
Posts: 2
Joined: 18 May 2018, 17:00

22 May 2020, 12:03

Resolved this myself in the end by comparing CSS values on the demo page https://www.primefaces.org/primereact/showcase/#/dialog

The offending CSS is:

Code: Select all

body .p-component-overlay {
  background-color: #424242;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
Overriding with this solves the issue:

Code: Select all

body .p-component-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest