Base Presets: CSS var --p-scrollbar-width
is not defined
#6094
Labels
Status: Pending Review
Issue or pull request is being reviewed by Core Team
Milestone
Describe the bug
Since v4 release, when a Dialog is opened,
.p-overflow-hidden
class is expectingvar(--p-scrollbar-width)
, however--p-scrollbar-width
is not being defined. See screenshot from Chrome Devtools below:Chrome Devtools screenshot showing CSS var is not defined
This results in the page (when a vertical scrollbar is visible) expanding to the right once the overlay appears. This degrades the UX of v4 over v3.
Note
Whilst this is being reported against v4.0.1 it was also present in v4.0.0
Reproducer
https://primevue.org/dialog/
PrimeVue version
4.0.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
body
node, under 'Elements' tab--p-scrollbar-width
is greyed out and when mouse hovers over it a tooltip is displayed stating it is not definedExpected behavior
Expectations are the when a Dialog (or similar component that displays a page overlay) is open, the content of the page should not expand to the right (by the width of the browser's scrollbar).
The text was updated successfully, but these errors were encountered: