Skip to content

Commit

Permalink
Merge pull request #1934 from SpareBank1/phone-number-zoom-fix
Browse files Browse the repository at this point in the history
fix(ffe-form): stabler telefon-inputs over hverandre på små skjermer
  • Loading branch information
antidecaf authored Apr 24, 2024
2 parents 6fa0134 + 8d1aa41 commit f470304
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/ffe-form/less/phone-number.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.ffe-phone-number {
&__input-group {
@media (min-width: @breakpoint-sm) {
display: flex;
}
}

&__country-code &__input-group {
display: flex;
}

Expand All @@ -11,13 +17,20 @@
white-space: nowrap;
margin-right: @ffe-spacing-xs;
}

@media (max-width: (@breakpoint-sm - 1)) {
margin-bottom: var(--ffe-spacing-sm);
}
}

&__country-code-input {
max-width: 60px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin-right: @ffe-spacing-sm;

@media (min-width: @breakpoint-sm) {
max-width: 4rem;
margin-right: var(--ffe-spacing-sm);
}
}

&__plus {
Expand All @@ -30,6 +43,8 @@
border-right: 0;
transition: all @ffe-transition-duration @ffe-ease;
color: var(--ffe-v-input-color);
display: flex;
align-items: center;
}

&__number {
Expand Down

0 comments on commit f470304

Please sign in to comment.