Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/lab' into lab
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed Dec 18, 2024
2 parents f04612a + 2ed2b38 commit d6d031f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/components/Tab/sgds-tab-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export class SgdsTabPanel extends SgdsElement {
return html`
<slot
class=${classMap({
"tab-panel": true,
"tab-panel--active": this.active
})}
"tab-panel": true,
"tab-panel--active": this.active
})}
></slot>
`;
}
Expand Down
13 changes: 11 additions & 2 deletions src/components/Tab/tab-group.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.tab-group {
display: flex;
flex-direction: column;
gap: var(--sgds-gap-xl);
}

.tab-group__nav {
display: flex;
flex-direction: row;
}

.tab-group__content {
Expand All @@ -12,6 +17,10 @@
flex-direction: row;
}

:host([orientation="vertical"]) .tab-group__content {
flex: 1;
:host([orientation="vertical"]) .tab-group__nav {
flex-direction: column;
}

:host([variant="solid"]) .tab-group__nav {
gap: var(--sgds-gap-xs);
}
8 changes: 2 additions & 6 deletions src/components/Tab/tab-panel.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
:host {
--tab-panel-padding-y: 1rem;
display: block;
}
.tab-panel {
display: block;
padding: var(--tab-panel-padding-y) 0;
}

.tab-panel:not(.tab-panel--active) {
display: none;
}
}

0 comments on commit d6d031f

Please sign in to comment.