From 7f464c8bcbf291bf3399aaec716a98d10aac8e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Papp=20Istv=C3=A1n=20P=C3=A9ter?= Date: Fri, 3 May 2024 12:08:02 +0200 Subject: [PATCH] Fixed #128 Add top border to panel when it has no header When no header is shown, .p-panel.content becomes the first child of its parent. We can use this property to render a proper border with the appropriate border radius. --- theme-base/components/panel/_panel.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/theme-base/components/panel/_panel.scss b/theme-base/components/panel/_panel.scss index 299e7e1..69219e9 100644 --- a/theme-base/components/panel/_panel.scss +++ b/theme-base/components/panel/_panel.scss @@ -33,6 +33,12 @@ border-bottom-right-radius: $borderRadius; border-bottom-left-radius: $borderRadius; } + + &:first-child { + border-top-right-radius: $borderRadius; + border-top-left-radius: $borderRadius; + border-top: $panelContentBorder; + } } .p-panel-footer {