From b27a631076b563bbea825d96e5dfa2d70c92f9fb Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 1 Aug 2022 08:17:17 -0400 Subject: [PATCH] Fix #3122: Dialog/Sidebar/Overlay default to hidden before animating --- components/lib/dialog/Dialog.css | 4 ++++ components/lib/overlaypanel/OverlayPanel.css | 4 ++++ components/lib/sidebar/Sidebar.css | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/components/lib/dialog/Dialog.css b/components/lib/dialog/Dialog.css index 87a3c57bab..8bddc1b657 100644 --- a/components/lib/dialog/Dialog.css +++ b/components/lib/dialog/Dialog.css @@ -16,6 +16,10 @@ display: flex; } +.p-dialog:not([class*='p-dialog-']) { + display: none; +} + .p-dialog-mask.p-component-overlay { pointer-events: auto; } diff --git a/components/lib/overlaypanel/OverlayPanel.css b/components/lib/overlaypanel/OverlayPanel.css index b3368590e5..670e62cad4 100644 --- a/components/lib/overlaypanel/OverlayPanel.css +++ b/components/lib/overlaypanel/OverlayPanel.css @@ -3,6 +3,10 @@ margin-top: 10px; } +.p-overlaypanel:not([class*='p-overlaypanel-']) { + display: none; +} + .p-overlaypanel-flipped { margin-top: 0; margin-bottom: 10px; diff --git a/components/lib/sidebar/Sidebar.css b/components/lib/sidebar/Sidebar.css index 69e44f36bd..dd0b8534d3 100644 --- a/components/lib/sidebar/Sidebar.css +++ b/components/lib/sidebar/Sidebar.css @@ -16,6 +16,10 @@ display: flex; } +.p-sidebar:not([class*="p-sidebar-"]){ + display: none; +} + .p-sidebar-mask.p-component-overlay { pointer-events: auto; }