Skip to content

Commit aa22922

Browse files
committed
re-add transparent panel
1 parent ed82797 commit aa22922

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/panel/panel.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export default class ZnPanel extends ZincElement {
3535

3636
@property({type: Boolean}) flush: boolean;
3737

38+
@property({type: Boolean}) transparent: boolean;
39+
3840

3941
protected firstUpdated(_changedProperties: PropertyValues) {
4042
super.firstUpdated(_changedProperties);
@@ -66,6 +68,7 @@ export default class ZnPanel extends ZincElement {
6668
panel: true,
6769
'panel--flush': this.flush || this.tabbed,
6870
'panel--tabbed': this.tabbed,
71+
'panel--transparent': this.transparent,
6972
'panel--has-actions': hasActionSlot,
7073
'panel--has-footer': hasFooterSlot,
7174
'panel--has-header': hasHeader,

src/components/panel/panel.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
padding: 0;
100100
}
101101

102+
&--transparent {
103+
background-color: transparent;
104+
border: none;
105+
}
106+
102107
&:not(.panel--flush) {
103108
::slotted(zn-sp) {
104109
--zn-sp-padding: 0 !important

0 commit comments

Comments
 (0)