Skip to content

Commit 26571f3

Browse files
authored
🐛 fix(button): labels will break in groups when there is not enough space (#1467)
fix(button): labels will break in groups when there is not enough space
1 parent 045d5f7 commit 26571f3

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

.changeset/stupid-pets-sip.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@baloise/ds-core': patch
3+
---
4+
5+
**button**: labels will break in groups when there is not enough space

packages/css/src/core/form/button.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
min-height: 3rem
3333
height: auto
3434
text-align: left
35-
word-break: break-word
35+
word-break: normal
3636
box-shadow: none
3737
outline: none
3838
box-sizing: border-box

packages/css/src/core/form/tools.sass

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
display: flex
9797
justify-content: flex-start
9898
& > .control
99-
flex-shrink: 0
10099
&:not(:last-child)
101100
margin-bottom: 0
102101
&.is-expanded

packages/styles/src/core/form/button.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
min-height: 3rem
3333
height: auto
3434
text-align: left
35-
word-break: break-word
35+
word-break: normal
3636
box-shadow: none
3737
outline: none
3838
box-sizing: border-box

packages/styles/src/core/form/tools.sass

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
display: flex
9797
justify-content: flex-start
9898
& > .control
99-
flex-shrink: 0
10099
&:not(:last-child)
101100
margin-bottom: 0
102101
&.is-expanded

0 commit comments

Comments
 (0)