Skip to content

Commit 54441b1

Browse files
a-stewartbendera
authored andcommitted
Only reduce the width of .wrapper if there is a divider
1 parent 2b35822 commit 54441b1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const styles: CSSResultGroup = [
2121
2222
::slotted(vscode-button:not(:last-child)) {
2323
--divider-display: block;
24+
--wrapper-width: calc(100%-1px);
2425
2526
border-top-right-radius: 0;
2627
border-bottom-right-radius: 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const styles: CSSResultGroup = [
105105
display: flex;
106106
justify-content: center;
107107
position: relative;
108-
width: calc(100% - 1px);
108+
width: var(--wrapper-width, 100%);
109109
height: 100%;
110110
padding: 1px 13px;
111111
}

0 commit comments

Comments
 (0)