-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feat/suggestion
- Loading branch information
Showing
62 changed files
with
611 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@digdir/designsystemet": minor | ||
--- | ||
|
||
Added option dry run using `--dry` on `tokens create` & `tokens build` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@digdir/designsystemet": minor | ||
--- | ||
|
||
`tokens create` now writes by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@digdir/designsystemet": minor | ||
--- | ||
|
||
Changed `-w, --write` to `-o, --out-dir` on `tokens create` & `tokens build` for defining output dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.css' { | ||
const styles: { [className: string]: string }; | ||
export default styles; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { Card, CardContent, Heading, Paragraph } from '@digdir/designsystemet-react'; | ||
|
||
import { Image } from '@components'; | ||
import { MenuPageLayout } from '@layouts'; | ||
import { Contributors } from '@blog'; | ||
|
||
export const metadata = { | ||
title: 'Bekreftelsesdialog', | ||
description: '...' | ||
}; | ||
|
||
export default ({ children }) => ( | ||
<MenuPageLayout | ||
content={children} | ||
data={{ | ||
title: 'Bekreftelsesdialog', | ||
date: '23. oktober 2024', | ||
}} | ||
/> | ||
); | ||
|
||
## Innledning | ||
I tillegg til [brukerutløste feilmeldinger](/monstre/feilmeldinger) og [systemvarsler](/monstre/systemvarsler), har vi også bekreftelsesdialoger. Bekreftelsesdialoger vises i form av en `modal` eller `popover` og ber brukeren bekrefte en handling som har alvorlige eller irreversible konsekvenser. | ||
|
||
|
||
#### Popover | ||
En `popover` er et ui-element som legger seg over grensesnittet. I motsetning til `modal` så vil ikke grensesnittet bak bli tonet ned, og brukeren vil ikke bli "låst" inne i popover komponenten. Disse kan være nyttige å bruke om du vil gi en beskjed basert på en handling. For eksempel at du vil informere brukeren om at det elementet de ønsker å slette ikke kan gjenopprettes om de velger å slette det. Disse burde kun brukes om det er lite informasjon som skal gis. Om du har bruk for mer plass kan `modal` være et bedre alternativ. | ||
|
||
Eksempelet under viser en popover der du må bekrefte at du ønsker å slette en rad i en tabell. | ||
<Image dataUnstyled | ||
src='/img/popover-systemvarsler.png' | ||
alt='Skjermbilde av tabell med medlemsliste. Popover viser en knapp der du må bekrefte at du ønsker å fjerne et medlem.' | ||
/> | ||
|
||
|
||
<Card color='brand3' data-unstyled> | ||
*Retningslinjene er under arbeid fra 5. juni 2024 i en tverretatlig arbeidsgruppe med deltakere fra Digdir, Nav, Skatt, Brreg, Politiet, KS DIF og Oslo kommune. Alle er velkommen til å påvirke arbeidet på [Github](https://github.com/digdir/designsystemet/discussions/1801) eller i [#Mønster-kanalen](https://designsystemet.slack.com/archives/C05RBGB92MC/p1712751837722749) på [Slack](https://join.slack.com/t/designsystemet/shared_invite/zt-2438eotl3-a4266Vd2IeqMWO8TBw5PrQ). | ||
</Card> | ||
|
||
<Contributors | ||
authors={[ | ||
'Roy Halvor Frimanslund (Brreg)', | ||
'Astrid Eline Øksnes (Politiet)', | ||
'Bernard Tommerbakke (Oslo Kommune)', | ||
'Vegard Haugstvedt (NAV)', | ||
'Eirik Backer (Mattilsynet)', | ||
'Lasse Febakke Straum (Digdir)', | ||
'Frida Almqvist (Entur)', | ||
'Marianne Røsvik (Digdir)', | ||
'Camilla Orten (SKD)', | ||
'Gørild Døhl (Digdir)', | ||
'Viveca Krishnamoorthi (Digdir)', | ||
|
||
]} | ||
/> | ||
<br /> | ||
<br /> | ||
<br /> |
Oops, something went wrong.