-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rewriting most remaining MUI usage #2905
base: main
Are you sure you want to change the base?
Conversation
…n AltinnSummaryTable
… not printing (whoops, I just wanted to test that out, didn't mean to keep it)
# Conflicts: # src/layout/OrganisationLookup/OrganisationLookupComponent.tsx
…in between the table and cell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Veldig nice! Skal ikke sette en stopper for noen ting, men hadde vært supernice om du brukte Designsystemet sine komponenter sånn at vi slipper å refaktorere dette igjen senere 😄 Tror også Percy-endringene er greie
src/components/AltinnSpinner.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Det finnes en Spinner
i Designsystemet allerede. Skulle vi heller brukt den? 😄 Vet at den er brukt flere andre steder i hvert fall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja, jeg har ikke sett på CircularProgress
og gjort noe med den enda (derav 'most' i tittelen på PRen). Helt enig på generell basis at det er best å bruke designsystemet sine komponenter. 🙌
prop={props.summaryDataObject[name]} | ||
/> | ||
export const AltinnSummaryTable = ({ summaryDataObject }: IAltinnSummaryTableProps) => ( | ||
<table className={classes.table}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvorfor ikke Designsystemet Table
-komponent? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fordi denne tabellen, rent utseendemessig, er heeelt basic. Det er såvidt det er en tabell engang. Jeg prøvde først å bare lage denne visningen med noen div-elementer og css grid, men det ble mye knot. Alt ble veldig mye enklere når jeg bare gjorde den om til en helt vanlig table. Med designsystemet måtte jeg ha overstyrt massevis av styling for å få den til å se ut som en simpel tabell (altså gitt at den skulle se lik ut), så det ville jo vært mot hensikten.
Jeg synes godt vi kan bytte ut denne greia med noe annet i fremtiden, men jeg er usikker på om tabellen fra designsystemet er riktig det heller. Men ingen poeng i å endre utseendet på den nå i forbindelse med fjerning av MUI.
) : ( | ||
<List classes={{ root: classes.list }}> | ||
<ul className={classes.list}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Her også, hvorfor ikke Designsystemet sin List
? 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, her undersøkte jeg ikke like nøye, men basert på utseendet til denne tror egentlig man like godt kunne ha brukt p-tagger eller noe. 😅 Med andre ord, den har nærmest ikke noe utseende, så jeg tror designsystemet bare hadde vært i veien (gitt at den skal se lik ut som før).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bra jobba, ser bra ut. 👏 Egentlig en kommentar, forslag om å legge altinnAppTheme variabler som css variabler for å bevare gjenbrukbarheten :)
margin-bottom: 0.75rem; | ||
border-radius: 0; | ||
background-color: #e3f7ff; | ||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Samme her
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tenker jeg dropper å lage en variabel på akkurat den. Den blir brukt nøyaktig 2 plasser, og bare i denne filen. Tidligere hadde den en variabel for hele box-shadow, men jeg ser ikke helt poenget.
Quality Gate failedFailed conditions |
Description
I had some time between issues, so I started pulling in one end to see how many of our MUI imports I could rewrite in a fairly short amount of time. I think this should be most of the low-hanging fruit.
Related Issue(s)
Verification/QA
kind/*
label to this PR for proper release notes grouping