Skip to content

Commit 3b51652

Browse files
committed
Adjust ButtonGroup css
1 parent 87fd91c commit 3b51652

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/vscode-button-group/vscode-button-group.styles.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ const styles: CSSResultGroup = [
66
defaultStyles,
77
css`
88
:host {
9-
display: inline-flex;
9+
display: inline-block;
10+
}
11+
12+
.root {
1013
align-items: stretch;
11-
padding: 0;
12-
border: none;
14+
display: flex;
15+
width: 100%;
1316
}
1417
1518
::slotted(vscode-button:not(:first-child)) {
@@ -28,6 +31,10 @@ const styles: CSSResultGroup = [
2831
::slotted(vscode-button:focus) {
2932
z-index: 1;
3033
}
34+
35+
::slotted(vscode-button:not(:empty)) {
36+
width: 100%;
37+
}
3138
`,
3239
];
3340

src/vscode-button-group/vscode-button-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class VscodeButtonGroup extends VscElement {
2424
static override styles = styles;
2525

2626
override render(): TemplateResult {
27-
return html` <slot></slot> `;
27+
return html`<div class="root"><slot></slot></div>`;
2828
}
2929
}
3030

0 commit comments

Comments
 (0)