Skip to content

Commit 5f23f23

Browse files
committed
Revert "Allow for vscode-button elements to shrink"
This reverts commit e6c9f10.
1 parent e6c9f10 commit 5f23f23

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const styles: CSSResultGroup = [
77
css`
88
:host {
99
display: inline-block;
10-
min-width: 0;
1110
}
1211
1312
.root {
@@ -19,6 +18,7 @@ const styles: CSSResultGroup = [
1918
::slotted(vscode-button:not(:first-child)) {
2019
--vsc-border-left-width: 0;
2120
--vsc-border-left-radius: 0;
21+
--vsc-border-left-width: 0;
2222
}
2323
2424
::slotted(vscode-button:not(:last-child)) {
@@ -27,14 +27,15 @@ const styles: CSSResultGroup = [
2727
--vsc-base-after-content: '';
2828
--vsc-border-right-width: 0;
2929
--vsc-border-right-radius: 0;
30+
--vsc-border-right-width: 0;
3031
}
3132
3233
::slotted(vscode-button:focus) {
3334
z-index: 1;
3435
}
3536
3637
::slotted(vscode-button:not(:empty)) {
37-
width: calc(100% - 1px);
38+
width: 100%;
3839
}
3940
`,
4041
];

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const styles: CSSResultGroup = [
1111
cursor: pointer;
1212
display: inline-block;
1313
width: auto;
14-
min-width: 0;
1514
}
1615
1716
.base {
@@ -148,7 +147,8 @@ const styles: CSSResultGroup = [
148147
:host(:empty) .base,
149148
.base.icon-only {
150149
min-height: 24px;
151-
padding: 1px 7px;
150+
min-width: 26px;
151+
padding: 1px 4px;
152152
}
153153
154154
slot {

0 commit comments

Comments
 (0)