<dialog/> CSS ::backdrop settings not being applied to cond'ly rendered dialog
Attached is my react component which is conditionally rendering the
<dialog className = "pick_up_dialog"/> element based on whether a user has a reservation for the current day, according to data being received in an API call , "fetchReservations".Unlike
ReserveModal and ProfileModal, which are also <dialog/> elements, but being returned in an imported component, the .pick_up_dialog <dialog/> is getting conditionally rendered directly inside of the PortalHome component I've attached. The transition animation from the
dialog{} declaration and other normal CSS settings are being applied to all three dialogs. But the dialog[open]::backdrop{} settings are not being applied to the conditionally rendered .pick_up_dialog. Is there something about conditional rendering that changed the CSS access to an element in React?
My CSS is being imported in my App.js:
import style from "./components/reserve.css";When the dialog is open and I inspect it, there is no ::backdrop element rendered in the DOM.
What am I not understanding?
kWQYDDjj.js9.41KB

