-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into chore/adjust-color-values
- Loading branch information
Showing
43 changed files
with
1,993 additions
and
1,821 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
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
v18.17.1 | ||
|
||
v20 |
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 |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# Alert | ||
|
||
Met een Alert breng je de gebruiker op de hoogte van een belangrijke of tijdgevoelige boodschap. De taak van de gebruiker wordt niet onderbroken. | ||
Met een Alert breng je de gebruiker op de hoogte van een belangrijke of tijdgevoelige boodschap. | ||
De taak van de gebruiker wordt niet onderbroken. | ||
|
||
## Specificaties | ||
|
||
### Kleurdefinities | ||
Er zijn vier soorten meldingen: | ||
|
||
- Geel: informatie | ||
- Rood: fout | ||
- Groen: goed | ||
- **Waarschuwing** (oranje) als er actie nodig is om schade te voorkomen. | ||
- **Foutmelding** (rood) om te laten weten dat er een fout is opgetreden. | ||
- **Bevestiging** (groen) ter geruststelling dat een proces is voltooid. | ||
- **Kennisgeving** (blauw) om een bericht onder de aandacht te brengen. | ||
|
||
## Richtlijnen | ||
|
||
- Standaard heeft het element geen sluiten knop. Optioneel kan deze toegevoegd worden. | ||
- Optioneel kan een icoon worden weggelaten. Een geel Alert heeft nooit een icoon. | ||
- Optioneel kan een titel worden weggelaten. | ||
- Aangeraden wordt om een Alert in ieder geval van een paragraaf text te voorzien en deze eventueel te ondersteunen met een link, opsomming of knop. | ||
- Plaats bij belangrijke en urgente informatie een oranje Alert direct onder de Header. | ||
Voorbeelden: een storing van een systeem of afwijkende openingstijden van een stadsloket. | ||
- Zorg voor voldoende witruimte rondom de Alert. | ||
De witruimte van het grid is een goede maatstaf – zet de Alert in zijn eigen cel. | ||
- Standaard kan de Alert niet gesloten worden. | ||
Deze mogelijkheid kan toegevoegd worden. | ||
- Optioneel kan de titel worden weggelaten. |
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,14 @@ | ||
# Icon Button | ||
|
||
Een Icon Button is een vierkante knop met alleen een icoon erin. | ||
|
||
## Richtlijnen | ||
|
||
- Gebruik deze knop alleen als het icoon volledig duidelijk en begrijpelijk is. | ||
Veel iconen worden door verschillende gebruikers verschillend geïnterpreteerd. | ||
Gebruik alleen overbekende iconen, zoals een sluitkruisje of een _play_-icoon. | ||
- Geef een labeltekst op die voor gebruikers van schermlezers beschrijft wat de knop doet. | ||
|
||
## Relevante WCAG eisen | ||
|
||
Voor de Icon Button gelden [dezelfde eisen en richtlijnen als voor een reguliere button](https://amsterdam.github.io/design-system/?path=/docs/react_buttons-button--docs). |
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,60 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright (c) 2023 Gemeente Amsterdam | ||
*/ | ||
|
||
@mixin reset { | ||
border: 0; | ||
padding-block: 0; | ||
padding-inline: 0; | ||
} | ||
|
||
.amsterdam-icon-button { | ||
background-color: transparent; | ||
color: var(--amsterdam-icon-button-color); | ||
cursor: pointer; | ||
outline-offset: var(--amsterdam-icon-button-outline-offset); | ||
touch-action: manipulation; | ||
|
||
&:hover { | ||
background-color: var(--amsterdam-icon-button-hover-background-color); | ||
color: var(--amsterdam-icon-button-hover-color); | ||
} | ||
|
||
&:disabled { | ||
background-color: transparent; | ||
color: var(--amsterdam-icon-button-disabled-color); | ||
cursor: not-allowed; | ||
} | ||
|
||
@include reset; | ||
} | ||
|
||
.amsterdam-icon-button--on-background-light { | ||
color: var(--amsterdam-icon-button-on-background-light-color); | ||
|
||
&:hover { | ||
background-color: var(--amsterdam-icon-button-on-background-light-hover-background-color); | ||
color: var(--amsterdam-icon-button-on-background-light-hover-color); | ||
} | ||
|
||
&:disabled { | ||
background-color: transparent; | ||
color: var(--amsterdam-icon-button-on-background-light-disabled-color); | ||
} | ||
} | ||
|
||
.amsterdam-icon-button--on-background-dark { | ||
background-color: var(--amsterdam-icon-button-on-background-dark-background-color); | ||
color: var(--amsterdam-icon-button-on-background-dark-color); | ||
|
||
&:hover { | ||
background-color: var(--amsterdam-icon-button-on-background-dark-hover-background-color); | ||
color: var(--amsterdam-icon-button-on-background-dark-hover-color); | ||
} | ||
|
||
&:disabled { | ||
background-color: var(--amsterdam-icon-button-on-background-dark-disabled-background-color); | ||
color: var(--amsterdam-icon-button-on-background-dark-disabled-color); | ||
} | ||
} |
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
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
Oops, something went wrong.