Skip to content

Commit

Permalink
Fixed primefaces#128 Add top border to panel when it has no header
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Papp István Péter committed May 3, 2024
1 parent f875d90 commit d43df2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions theme-base/components/panel/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d43df2f

Please sign in to comment.