Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit cf56ce8

Browse files
tripleWdotcomTigge
authored andcommitted
fix(toggleButtonGroup): color and border don't overflow now
1 parent f60d952 commit cf56ce8

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/core/src/DateTimePicker/__snapshots__/index.test.tsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ exports[`DateTimePicker DateTimePicker 1`] = `
16771677
-webkit-justify-content: center;
16781678
-ms-flex-pack: center;
16791679
justify-content: center;
1680+
box-sizing: border-box;
16801681
padding: 0 8px;
16811682
overflow: hidden;
16821683
white-space: nowrap;
@@ -1711,6 +1712,7 @@ exports[`DateTimePicker DateTimePicker 1`] = `
17111712
-webkit-justify-content: center;
17121713
-ms-flex-pack: center;
17131714
justify-content: center;
1715+
box-sizing: border-box;
17141716
padding: 0 8px;
17151717
overflow: hidden;
17161718
white-space: nowrap;
@@ -3014,6 +3016,7 @@ exports[`DateTimePicker DateTimePicker 2`] = `
30143016
-webkit-justify-content: center;
30153017
-ms-flex-pack: center;
30163018
justify-content: center;
3019+
box-sizing: border-box;
30173020
padding: 0 8px;
30183021
overflow: hidden;
30193022
white-space: nowrap;
@@ -3048,6 +3051,7 @@ exports[`DateTimePicker DateTimePicker 2`] = `
30483051
-webkit-justify-content: center;
30493052
-ms-flex-pack: center;
30503053
justify-content: center;
3054+
box-sizing: border-box;
30513055
padding: 0 8px;
30523056
overflow: hidden;
30533057
white-space: nowrap;

packages/core/src/ToggleButtonGroup/__snapshots__/index.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ exports[`ToggleButtonGroup ToggleButtonGroup 1`] = `
7777
-webkit-justify-content: center;
7878
-ms-flex-pack: center;
7979
justify-content: center;
80+
box-sizing: border-box;
8081
padding: 0 8px;
8182
overflow: hidden;
8283
white-space: nowrap;
@@ -111,6 +112,7 @@ exports[`ToggleButtonGroup ToggleButtonGroup 1`] = `
111112
-webkit-justify-content: center;
112113
-ms-flex-pack: center;
113114
justify-content: center;
115+
box-sizing: border-box;
114116
padding: 0 8px;
115117
overflow: hidden;
116118
white-space: nowrap;
@@ -354,6 +356,7 @@ exports[`ToggleButtonGroup ToggleButtonGroupWithField 1`] = `
354356
-webkit-justify-content: center;
355357
-ms-flex-pack: center;
356358
justify-content: center;
359+
box-sizing: border-box;
357360
padding: 0 8px;
358361
overflow: hidden;
359362
white-space: nowrap;

packages/core/src/ToggleButtonGroup/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const ToggleButtonContent = styled.div<ToggleButtonContentProps>`
5353
display: flex;
5454
align-items: center;
5555
justify-content: center;
56+
box-sizing: border-box;
5657
padding: 0 ${spacing.medium};
5758
overflow: hidden;
5859
white-space: nowrap;

0 commit comments

Comments
 (0)