Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ffe-form): stabler telefon-inputs over hverandre på små skjermer #1934

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

antidecaf
Copy link
Contributor

Beskrivelse

Inputene for landskode og telefonnummer stables i høyden på små skjermer, for å unngå overflow-issues ved zoom og tekstskalering.

Før:
image

Etter:
image

Motivasjon og kontekst

Fixes #1731

Testing

Testet i component-overview

@antidecaf antidecaf requested a review from a team as a code owner April 24, 2024 11:05
@@ -1,5 +1,11 @@
.ffe-phone-number {
&__input-group {
@media (min-width: @breakpoint-sm) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

burde vi bruke container queries istellet for media queries når vi liks er i gang. Det har veldig fint browserstøtte. Hvis man har 3 kolumner på desktop feks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det kan godt være fornuftigere ja. Men kanskje vi kan gjøre den forbedringen i en ny PR, så vi kan se på om breakpointene fortsatt gir mening i den konteksten

@@ -1,5 +1,11 @@
.ffe-phone-number {
&__input-group {
@media (min-width: @breakpoint-sm) {
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Når vi har flex burde vi ha flex-wrap for og klare zoom?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usikker på hva du mener? Flex-wrap er default/nowrap fordi inputene skal ligge ved siden av hverandre. De tåler zoom godt på større skjermer så vidt jeg har kunnet teste meg frem til.

margin-right: @ffe-spacing-sm;

@media (min-width: @breakpoint-sm) {
max-width: 60px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bredde i rem? tåler den alle zoom nivåer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Byttet ut i 4rem

@pethel
Copy link
Contributor

pethel commented Apr 24, 2024

Burde det + vare horizontalt centrert når vi er i gang?

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-1934.westeurope.2.azurestaticapps.net

@antidecaf antidecaf force-pushed the phone-number-zoom-fix branch from b953cdd to 2e098a9 Compare April 24, 2024 11:53
inputene stables i høyden på små skjermer, for å unngå overflow-issues ved zoom og tekstskalering
@antidecaf antidecaf force-pushed the phone-number-zoom-fix branch from 2e098a9 to 8d1aa41 Compare April 24, 2024 11:57
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-1934.westeurope.2.azurestaticapps.net

1 similar comment
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-beach-0d62d0d03-1934.westeurope.2.azurestaticapps.net

@antidecaf antidecaf merged commit f470304 into develop Apr 24, 2024
3 checks passed
@antidecaf antidecaf deleted the phone-number-zoom-fix branch April 24, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fikse feil ved fontskalering i PhoneNumber
2 participants