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

docs: added article about system errors #2547

Draft
wants to merge 46 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0f930f8
added article about system errors
mrosvik Oct 1, 2024
8fa6894
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 1, 2024
c0dc7f9
date
mrosvik Oct 1, 2024
bd3b2dc
added image examples
mrosvik Oct 2, 2024
99d2182
Merge branch 'next' into docs/systemvarsler
Barsnes Oct 2, 2024
1934e0a
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 2, 2024
e848c4c
Merge branch 'next' into docs/systemvarsler
Barsnes Oct 15, 2024
98bfacd
Update page.mdx
mrosvik Oct 15, 2024
94294b5
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 15, 2024
9b6326b
added examples
mrosvik Oct 15, 2024
47473ea
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 22, 2024
0c93252
added popover example
mrosvik Oct 22, 2024
fc2c39c
new intro from @Ildest
mrosvik Oct 23, 2024
549da88
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 23, 2024
7e6e3e1
updates from @ildest part 2
mrosvik Oct 23, 2024
1f21476
space after list
mrosvik Oct 23, 2024
66359ef
intro
mrosvik Oct 23, 2024
14a2830
review @ildest part 3
mrosvik Oct 23, 2024
d0ed916
date
mrosvik Oct 23, 2024
6032ba1
review @ildest part 4
mrosvik Oct 23, 2024
925739a
remove popover
mrosvik Oct 23, 2024
39fe435
links
mrosvik Oct 23, 2024
27560a4
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 23, 2024
d3cacef
Merge branch 'next' into docs/systemvarsler
mrosvik Oct 24, 2024
4ad143c
Merge branch 'next' into docs/systemvarsler
mrosvik Nov 6, 2024
8085a93
remove popover
mrosvik Nov 7, 2024
fb4c42a
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
ab1656a
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
9bc44ac
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
f3bf597
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
3845625
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
cfe21f8
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
20e31e2
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
d77cbdc
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
9d1bc85
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
ffd5dc0
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
4cfc852
Update apps/storefront/app/monstre/systemvarsler/page.mdx
mrosvik Nov 13, 2024
8d84ed5
Merge branch 'next' into docs/systemvarsler
mrosvik Nov 13, 2024
85aeb60
links
mrosvik Nov 13, 2024
59e4f92
remove popover
mrosvik Nov 13, 2024
ae69d3b
Merge branch 'next' into docs/systemvarsler
mrosvik Nov 13, 2024
73827a0
passer til og passer ikke til
mrosvik Nov 13, 2024
a24d08f
updated example images
mrosvik Nov 13, 2024
c37f3c5
Forkorte innledning
mrosvik Nov 13, 2024
f462d2f
new image
mrosvik Nov 13, 2024
7557d94
add contributor
mrosvik Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions apps/storefront/app/monstre/bekreftelsesdialog/page.mdx
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 gies. 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 i [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 />
226 changes: 213 additions & 13 deletions apps/storefront/app/monstre/systemvarsler/page.mdx

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/storefront/public/img/alert-global.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/storefront/public/img/alert-lokal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/storefront/public/img/full-feilside.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading