Skip to content

Commit

Permalink
Merge pull request #1814 from SpareBank1/develop_overflow-wrap
Browse files Browse the repository at this point in the history
Develop overflow wrap
  • Loading branch information
pethel authored Feb 28, 2024
2 parents 8ad9109 + 52e9596 commit dbee0a8
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 20 deletions.
3 changes: 1 addition & 2 deletions packages/ffe-accordion/less/accordion.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

&__heading,
&__body {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
}

&__heading-button {
Expand Down
3 changes: 1 addition & 2 deletions packages/ffe-cards/less/components.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
}

:where(.ffe-card-body__card-name, .ffe-card-body__text, .ffe-card-body__subtext, .ffe-card-body__title) {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
}
3 changes: 1 addition & 2 deletions packages/ffe-context-message/less/context-message.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
.ffe-small-text,
.ffe-link-text,
&__header {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
}

.ffe-body-paragraph,
Expand Down
6 changes: 2 additions & 4 deletions packages/ffe-core/less/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@
margin-bottom: @ffe-spacing-xs;
margin-top: 0;
text-wrap: balance;
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;

&--error {
color: var(--ffe-g-error-color);
Expand Down Expand Up @@ -475,6 +474,5 @@
.ffe-pre-text,
.ffe-small-text,
.ffe-micro-text {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
}
3 changes: 1 addition & 2 deletions packages/ffe-form/less/form-label.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.ffe-form-label {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
padding-bottom: @ffe-spacing-xs;
display: inline-block;
position: relative;
Expand Down
1 change: 0 additions & 1 deletion packages/ffe-form/less/radio-block.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
width: 100%;
transition: width @ffe-transition-duration @ffe-ease-in-out-back;
overflow-wrap: anywhere;
hyphens: auto;

&__content,
&__header {
Expand Down
1 change: 0 additions & 1 deletion packages/ffe-form/less/radio-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

line-height: var(--line-height);
overflow-wrap: anywhere;
hyphens: auto;
font-family: var(--ffe-g-font);
font-variant-numeric: tabular-nums;
display: grid;
Expand Down
1 change: 0 additions & 1 deletion packages/ffe-form/less/radio-switch.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
margin-top: @ffe-spacing-sm;
line-height: 1.5;
overflow-wrap: anywhere;
hyphens: auto;

&::before {
content: '';
Expand Down
1 change: 0 additions & 1 deletion packages/ffe-form/less/tooltip.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
visibility: hidden;
transition: height @ffe-transition-duration @ffe-ease;
overflow-wrap: anywhere;
hyphens: auto;
}

&--open &__text {
Expand Down
3 changes: 1 addition & 2 deletions packages/ffe-message-box/less/message-box.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
.ffe-body-paragraph,
.ffe-link-text,
&__title {
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;
}

.ffe-body-paragraph {
Expand Down
3 changes: 1 addition & 2 deletions packages/ffe-system-message/less/system-message.less
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@
padding: 0;
font-size: 0.875rem;
flex: 1 1 auto;
word-break: break-all;
hyphens: auto;
overflow-wrap: anywhere;

@media (min-width: 600px) {
font-size: 1rem;
Expand Down

0 comments on commit dbee0a8

Please sign in to comment.