Code: Select all
[vite:css] variable --maskbg is undefined and used without a fallback
101| }
102| to {
103| background-color: var(--maskbg);
| ^
104| }
105| }
[vite:css] variable --maskbg is undefined and used without a fallback
106| @keyframes p-component-overlay-leave-animation {
107| from {
108| background-color: var(--maskbg);
| ^
109| }
110| to {
Code: Select all
.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4);
transition-duration: 0.2s;
--maskbg: rgba(0, 0, 0, 0.4);
}
If I add maskbg to :root in theme I am using then build warning/error goes away but am concerned that there may be some other issue.
Code: Select all
:root {
--maskbg: rgba(0, 0, 0, 0.9);