@amsterdam/design-system-css 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE.md +1 -1
  3. package/README.md +2 -1
  4. package/dist/alert/alert.css +1 -1
  5. package/dist/alert/alert.css.map +1 -1
  6. package/dist/badge/badge.css +1 -0
  7. package/dist/badge/badge.css.map +1 -0
  8. package/dist/dialog/dialog.css +1 -1
  9. package/dist/dialog/dialog.css.map +1 -1
  10. package/dist/grid/grid.css +1 -1
  11. package/dist/grid/grid.css.map +1 -1
  12. package/dist/icon/icon.css +1 -1
  13. package/dist/icon/icon.css.map +1 -1
  14. package/dist/icon-button/icon-button.css +1 -0
  15. package/dist/icon-button/icon-button.css.map +1 -0
  16. package/dist/index.css +1 -1
  17. package/dist/index.css.map +1 -1
  18. package/dist/link-list/link-list.css +1 -0
  19. package/dist/link-list/link-list.css.map +1 -0
  20. package/dist/mega-menu/mega-menu.css +1 -0
  21. package/dist/mega-menu/mega-menu.css.map +1 -0
  22. package/dist/search-field/search-field.css +1 -1
  23. package/dist/search-field/search-field.css.map +1 -1
  24. package/dist/spotlight/spotlight.css +1 -1
  25. package/dist/spotlight/spotlight.css.map +1 -1
  26. package/dist/table/table.css +1 -0
  27. package/dist/table/table.css.map +1 -0
  28. package/documentation/coding-conventions.md +4 -2
  29. package/package.json +4 -4
  30. package/src/components/accordion/README.md +45 -38
  31. package/src/components/alert/README.md +15 -11
  32. package/src/components/alert/alert.scss +8 -38
  33. package/src/components/aspect-ratio/README.md +12 -12
  34. package/src/components/badge/README.md +10 -0
  35. package/src/components/badge/badge.scss +58 -0
  36. package/src/components/blockquote/README.md +8 -8
  37. package/src/components/breadcrumb/README.md +10 -7
  38. package/src/components/button/README.md +17 -14
  39. package/src/components/card/README.md +18 -19
  40. package/src/components/checkbox/README.md +19 -18
  41. package/src/components/dialog/README.md +9 -8
  42. package/src/components/dialog/dialog.scss +0 -16
  43. package/src/components/footer/README.md +11 -7
  44. package/src/components/form-label/README.md +5 -1
  45. package/src/components/grid/README.md +12 -13
  46. package/src/components/grid/grid.scss +4 -0
  47. package/src/components/header/README.md +2 -2
  48. package/src/components/heading/README.md +14 -11
  49. package/src/components/icon/README.md +19 -9
  50. package/src/components/icon/icon.scss +5 -0
  51. package/src/components/icon-button/README.md +14 -0
  52. package/src/components/icon-button/icon-button.scss +60 -0
  53. package/src/components/image/README.md +16 -17
  54. package/src/components/index.scss +5 -0
  55. package/src/components/link/README.md +26 -24
  56. package/src/components/link-list/README.md +16 -0
  57. package/src/components/link-list/link-list.scss +80 -0
  58. package/src/components/logo/README.md +21 -20
  59. package/src/components/mark/README.md +10 -11
  60. package/src/components/mega-menu/README.md +1 -0
  61. package/src/components/mega-menu/mega-menu.scss +14 -0
  62. package/src/components/ordered-list/README.md +5 -5
  63. package/src/components/overlap/README.md +1 -1
  64. package/src/components/page-heading/README.md +10 -9
  65. package/src/components/page-menu/README.md +10 -9
  66. package/src/components/pagination/README.md +13 -10
  67. package/src/components/paragraph/README.md +16 -14
  68. package/src/components/screen/README.md +12 -12
  69. package/src/components/search-field/README.md +18 -18
  70. package/src/components/search-field/search-field.scss +2 -10
  71. package/src/components/skip-link/README.md +18 -25
  72. package/src/components/spotlight/README.md +5 -5
  73. package/src/components/spotlight/spotlight.scss +4 -4
  74. package/src/components/switch/README.md +11 -9
  75. package/src/components/table/README.md +11 -0
  76. package/src/components/table/table.scss +36 -0
  77. package/src/components/text-input/README.md +10 -8
  78. package/src/components/top-task-link/README.md +15 -14
  79. package/src/components/unordered-list/README.md +5 -5
  80. package/src/components/visually-hidden/README.md +3 -2
  81. package/src/components/button/button-css.md +0 -12
  82. package/src/components/checkbox/checkbox-css.md +0 -3
  83. package/src/components/footer/footer-css.md +0 -11
  84. package/src/components/heading/heading-css.md +0 -3
  85. package/src/components/paragraph/paragraph-css.md +0 -3
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2024 Gemeente Amsterdam
4
+ */
5
+
6
+ @mixin reset-list {
7
+ box-sizing: border-box;
8
+ list-style: none;
9
+ margin-block: 0;
10
+ padding-inline-start: 0;
11
+ -webkit-text-size-adjust: 100%;
12
+ }
13
+
14
+ .amsterdam-link-list {
15
+ @include reset-list;
16
+
17
+ display: grid;
18
+ gap: var(--amsterdam-link-list-gap);
19
+ }
20
+
21
+ .amsterdam-link-list__link {
22
+ align-items: flex-start;
23
+ color: var(--amsterdam-link-list-link-color);
24
+ display: inline-flex;
25
+ font-family: var(--amsterdam-link-list-link-font-family);
26
+ font-size: var(--amsterdam-link-list-link-spacious-medium-font-size);
27
+ font-weight: var(--amsterdam-link-list-link-font-weight);
28
+ gap: var(--amsterdam-link-list-link-gap);
29
+ line-height: var(--amsterdam-link-list-link-spacious-medium-line-height);
30
+ outline-offset: var(--amsterdam-link-list-link-outline-offset);
31
+ text-decoration-line: var(--amsterdam-link-list-link-text-decoration-line);
32
+ text-decoration-thickness: var(--amsterdam-link-list-link-text-decoration-thickness);
33
+ text-underline-offset: var(--amsterdam-link-list-link-text-underline-offset);
34
+
35
+ .amsterdam-theme--compact & {
36
+ font-size: var(--amsterdam-link-list-link-compact-medium-font-size);
37
+ line-height: var(--amsterdam-link-list-link-compact-medium-line-height);
38
+ }
39
+
40
+ &:hover {
41
+ color: var(--amsterdam-link-list-link-hover-color);
42
+ text-decoration-line: var(--amsterdam-link-list-link-hover-text-decoration-line);
43
+ }
44
+ }
45
+
46
+ .amsterdam-link-list__link--small {
47
+ font-size: var(--amsterdam-link-list-link-spacious-small-font-size);
48
+ line-height: var(--amsterdam-link-list-link-spacious-small-line-height);
49
+
50
+ .amsterdam-theme--compact & {
51
+ font-size: var(--amsterdam-link-list-link-compact-small-font-size);
52
+ line-height: var(--amsterdam-link-list-link-compact-small-line-height);
53
+ }
54
+ }
55
+
56
+ .amsterdam-link-list__link--large {
57
+ font-size: var(--amsterdam-link-list-link-spacious-large-font-size);
58
+ line-height: var(--amsterdam-link-list-link-spacious-large-line-height);
59
+
60
+ .amsterdam-theme--compact & {
61
+ font-size: var(--amsterdam-link-list-link-compact-large-font-size);
62
+ line-height: var(--amsterdam-link-list-link-compact-large-line-height);
63
+ }
64
+ }
65
+
66
+ .amsterdam-link-list__link--on-background-dark {
67
+ color: var(--amsterdam-link-list-link-on-background-dark-color);
68
+
69
+ &:hover {
70
+ color: var(--amsterdam-link-list-link-on-background-dark-hover-color);
71
+ }
72
+ }
73
+
74
+ .amsterdam-link-list__link--on-background-light {
75
+ color: var(--amsterdam-link-list-link-on-background-light-color);
76
+
77
+ &:hover {
78
+ color: var(--amsterdam-link-list-link-on-background-light-hover-color);
79
+ }
80
+ }
@@ -1,38 +1,39 @@
1
1
  # Logo
2
2
 
3
- Het logo van de gemeente bestaat uit een beeldmerk (3 Andreaskruisen) en een woordmerk (Gemeente Amsterdam).
4
- Het logo heeft een vaste kleur, grootte en positie en staat op al onze websites.
3
+ The City’s logo includes an icon (3 Saint Andrew’s crosses) and a wordmark (Gemeente Amsterdam).
4
+ The logo has a fixed colour, size, and position and is present on all our websites.
5
5
 
6
- ## Specificaties
6
+ ## Specifications
7
7
 
8
- Het design system biedt het correcte logo voor online gebruik aan.
9
- Er bestaan andere varianten van het logo, maar die mogen op websites en in applicaties niet gebruikt worden.
10
- Het Nederlandse logo voor Nederlandstalige websites en anderstalige websites behalve Engels.
11
- Het Engelstalige logo gebruiken we voor Engelstalige websites.
12
- Dit logo wordt later toegevoegd aan het design system.
13
- In de tussentijd kun je een afbeelding van dit logo downloaden vanaf [Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/logo-gemeente-amsterdam/#hba498e5c-2388-464f-b769-7622a5d32bd1).
8
+ The design system provides the correct logo for online use.
9
+ Other logo variations exist, but they cannot be used on websites and in applications.
10
+ The Dutch logo is for websites in the Dutch language and any language other than English.
11
+ The English logo is used for websites in the English language.
12
+ (We will add this logo to the design system later.)
13
+ In the meantime, you can download an image of this logo from [Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/logo-gemeente-amsterdam/#hba498e5c-2388-464f-b769-7622a5d32bd1).
14
14
 
15
- ## Uitzondering
15
+ ## Exception
16
16
 
17
- Gebruik het submerklogo als de website eigendom is van 1 van de 4 submerken.
18
- Zij hebben een aparte status omdat er sprake is van een bijzondere vorm van dienstverlening die niet direct met de gemeente in verband wordt gebracht.
17
+ Use a sub-brand logo if the website is owned by one of the 4 sub-brands.
18
+ They have a separate status because of their unique service provision not directly associated with the City.
19
19
 
20
- De submerken zijn:
20
+ The sub-brands are:
21
21
 
22
22
  - GGD Amsterdam
23
23
  - Stadsarchief
24
24
  - Stadsbank van Lening
25
25
  - VGA Verzekeringen
26
26
 
27
- ## Eisen voor alle logo´s
27
+ ## Requirements for all logos
28
28
 
29
- - Het logo wordt altijd getoond.
30
- - Het logo is linksboven uitgelijnd in de header.
31
- - Het logo verwijst naar de homepage van je website of applicatie.
32
- - Als de applicatie een formulier, applicatie of tool is zonder homepage, dan linkt het logo naar de pagina van waar naar het formulier, applicatie of tool wordt verwezen.
29
+ - The logo is always displayed.
30
+ - The logo is left-aligned in the header.
31
+ - The logo links to the homepage of the website or application.
32
+ - If the application is a form, application, or tool without a homepage, the logo links to the page where the form, application, or tool is referred to.
33
33
 
34
- De hoogte van het logo is altijd 40 pixels. Dit geldt ook voor de submerklogo´s.
34
+ The height of the logo is always 40 pixels.
35
+ This also applies to sub-brand logos.
35
36
 
36
37
  ## Download
37
38
 
38
- - [Logoset voor website en apps (ZIP, 10 kB)](https://assets.amsterdam.nl/publish/pages/1007650/logoset_voor_websites_en_apps.zip)
39
+ - [Logo set for websites and apps (ZIP, 10 kB)](https://assets.amsterdam.nl/publish/pages/1007650/logoset_voor_websites_en_apps.zip)
@@ -1,18 +1,17 @@
1
1
  # Mark
2
2
 
3
- Markeert een fragment tekst met een gele achtergrond.
4
- Het zorgt voor sterke nadruk op de tekst en leidt de aandacht ernaartoe.
3
+ Highlights a text fragment using a yellow background.
4
+ Provides strong emphasis on the text and draws attention to it.
5
5
 
6
- ## Richtlijnen
6
+ ## Guidelines
7
7
 
8
- ### Zo gebruiken
8
+ ### How to Use
9
9
 
10
- - Maximaal 1 markering per pagina.
11
- De voorkeur is geen markering.
12
- - Maximaal 1 zin.
10
+ - Use a maximum of 1 mark per page.
11
+ - Limit the marked text to 1 sentence.
13
12
 
14
- ### Dit vermijden
13
+ ### Avoid This
15
14
 
16
- - Niet in de titel en subtitels gebruiken.
17
- Zorg voor een belangrijke, pakkende titel als de hele paragraaf belangrijk is.
18
- - Mag niet voor een hele paragraaf gebruikt worden.
15
+ - Do not use it in titles and subtitles.
16
+ Use a significant and engaging title if the entire paragraph is important.
17
+ - Do not mark an entire paragraph.
@@ -0,0 +1 @@
1
+ # Mega Menu
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 Gemeente Amsterdam
4
+ */
5
+
6
+ .amsterdam-mega-menu__list-category {
7
+ column-gap: var(--amsterdam-mega-menu-list-category-column-gap);
8
+ column-width: var(--amsterdam-mega-menu-list-category-column-width);
9
+ padding-block-start: var(--amsterdam-mega-menu-list-category-padding-block-start);
10
+
11
+ &:not(:last-child) {
12
+ padding-block-end: var(--amsterdam-mega-menu-list-category-padding-block-end);
13
+ }
14
+ }
@@ -1,7 +1,7 @@
1
1
  # Ordered List
2
2
 
3
- Een geordende lijst is een verticale groep gerelateerde inhoud met een volgorde.
4
- Deze lijst kan 2 niveaus hebben.
5
- Het eerste niveau is genummerd.
6
- Het tweede niveau gebruikt letters in alfabetische volgorde.
7
- Tekst in de lijstitems springt een vaste afstand in.
3
+ An ordered list is a vertical group of related content with an order.
4
+ This list can have 2 levels.
5
+ The first level has numbers as list markers.
6
+ The second level uses letters in alphabetical order.
7
+ List items indent their text by a fixed distance.
@@ -1,3 +1,3 @@
1
1
  # Overlap
2
2
 
3
- Toont twee of meer componenten over elkaar heen.
3
+ Displays two or more components on top of each other.
@@ -1,16 +1,17 @@
1
1
  # Page Heading
2
2
 
3
- Het page heading component is een opvallende tekst aan het begin van een pagina, direct na de header.
4
- Gebruik dit component voor een naam, titel of motto.
3
+ The page heading component is a prominent text at the beginning of a page, immediately after the header.
4
+ Use this component for a name, title, or motto.
5
5
 
6
- ## Richtlijnen
6
+ ## Guidelines
7
7
 
8
- - Gebruik dit component om de aandacht van de gebruiker te trekken.
9
- - Gebruik dit component maar 1 keer per pagina, vaak alleen op de voorpagina.
10
- - Niet gebruiken als je lange stukken tekst wilt weergeven, de tekst moet kort en duidelijk zijn.
8
+ - Use this component to capture the user’s attention.
9
+ - Only use this component once per page, typically only on the homepage.
10
+ - Avoid using it if you need to display long pieces of text; the text should be short and precise.
11
11
 
12
- ## Relevante WCAG eisen
12
+ ## Relevant WCAG Requirements
13
13
 
14
- Het page heading component is een variant van een heading level 1, met een afwijkende stijl. Let bij gebruik van dit component goed op dat de heading hiërarchie van de pagina logisch blijft.
14
+ The page heading component is a variant of a heading level 1 with a distinct style.
15
+ When using this component, ensure that the heading hierarchy of the page remains logical.
15
16
 
16
- Voor dit component gelden dezelfde WCAG eisen als voor [het heading component](https://amsterdam.github.io/design-system/?path=/docs/react_text-heading--docs).
17
+ For this component, the same WCAG requirements apply as for [the heading component](https://amsterdam.github.io/design-system/?path=/docs/react_text-heading--docs).
@@ -1,17 +1,18 @@
1
1
  # Page Menu
2
2
 
3
- Het Page Menu wordt alleen gebruikt in het Header en Footer component en is uitsluitend bedoeld voor horizontale navigatie. Het uiterlijk van de links en buttons zijn gelijk getrokken en kunnen beide gebruikt worden. Een link voor navigatie acties en een button voor het afvuren van een javascript event voor bijvoorbeeld het openen van het hoofdmenu of het tonen van een modal.
3
+ A small set of links for use in the Header and Footer.
4
4
 
5
- ## Richtlijnen
5
+ ## Guidelines
6
6
 
7
- - Als hoofdnavigatie in de header heeft het Page Menu maximaal 5 items inclusief Zoeken en Menu, staan op 1 regel en is rechts uitgelijnd. Houd minimaal 1 kolom afstand tussen de sitetitel en het eerste menu-item.
8
- - Als footer menu in het Page Menu links uitgelijnd.
9
- - Submenu's zijn niet toegestaan.
10
- - Gebruik het standaard Menu-item als er meer informatie in het hoofdmenu nodig is. Dit item toont een schermbreed uitklapmenu (overlay) met koppelingen. De indeling van de koppelingen is vrij.
11
- - Bij gebruik van het Menu-item zijn de overige items (bijvoorbeeld Zoeken, Contact) in de koptekst functioneel. Deze items kunnen herhaald worden binnen het uitgeklapte Menu-item.
7
+ - Limit the amount of menu items in the Header to 5 items or less, including ‘Search’ and ‘Menu’.
8
+ - The menu should fit on a single line and is right-aligned.
9
+ - The menu in the footer is left-aligned.
10
+ - Submenus are not allowed.
11
+ - The Menu button opens the Mega Menu.
12
+ - On narrow screens, menu items other than ‘Search’ and ‘Menu’ move from the Page Menu to the Mega Menu.
12
13
 
13
- ## Relevante WCAG eisen
14
+ ## Relevant WCAG Requirements
14
15
 
15
16
  - [Consistent Navigation (Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html)
16
17
 
17
- PageMenu is een interactief element, hier gelden [de algemene eisen en richtlijnen voor interactieve elementen](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) voor.
18
+ PageMenu is an interactive element, and the [general requirements and guidelines for interactive elements](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) apply.
@@ -1,16 +1,19 @@
1
1
  # Pagination
2
2
 
3
- Pagination (in het Nederlands: paginering) is een navigatie-element om tussen meerdere pagina’s met overzichtslijsten te navigeren. Denk hierbij aan zoekresultaten of een lijst met nieuwsartikelen. Bij lange overzichtslijsten kan het duidelijker of functioneler zijn om de inhoud over meerdere pagina’s te verdelen. Paginering laat zien op welke pagina de gebruiker zich bevindt en de gebruiker kan hiermee naar een andere pagina navigeren.
3
+ Pagination is a navigation element used to navigate between multiple pages of overview lists.
4
+ This is commonly used for search results or a list of news articles.
5
+ In cases where overview lists are too long to display on a single page, pagination can provide a clearer and more functional way to divide the content across multiple pages.
6
+ Pagination indicates the current page and allows users to navigate to other pages.
4
7
 
5
- ## Richtlijnen
8
+ ## Guidelines
6
9
 
7
- - Gebruik paginering alleen als een overzichtslijst te lang is om op 1 pagina te tonen.
8
- - Voeg de paginering toe onder de overzichtslijst.
9
- - De paginering wordt niet getoond als er maar 1 pagina is.
10
- - Verwijs de gebruikers door naar de eerste pagina als ze een URL opgeven van een paginanummer dat niet (meer) bestaat.
11
- - De paginering kan gecombineerd worden met een teller bovenaan de pagina diePagina # van ##” aanduidt.
12
- - Start een pagina met een overzichtslijst bovenaan na het veranderen van pagina.
10
+ - Use pagination only when an overview list is too long to display on a single page.
11
+ - Place pagination below the overview list.
12
+ - Pagination should not be displayed if there is only one page.
13
+ - Redirect users to the first page if they enter a URL with a page number that doesn’t exist.
14
+ - Pagination can be combined with a counter at the top of the page indicating Page # of ##.”
15
+ - Start a page with an overview list at the top after changing the page.
13
16
 
14
- ## Relevante WCAG regels
17
+ ## Relevant WCAG Rules
15
18
 
16
- Pagination is een interactief element, hier gelden [de algemene eisen en richtlijnen voor interactieve elementen](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) voor.
19
+ Pagination is an interactive element, and the [general requirements and guidelines for interactive elements](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) apply.
@@ -1,24 +1,26 @@
1
1
  # Paragraph
2
2
 
3
- De `Paragraph` component gebruik je voor een alinea met lopende tekst, instructies van formulieren en voor overige losstaande tekstfragmenten.
3
+ Represents a paragraph of running text, form instructions, and other standalone text fragments.
4
4
 
5
- ## Richtlijnen
5
+ ## Guidelines
6
6
 
7
- - Groepeer zinnen die bij elkaar horen in een alinea. Begin een nieuwe alinea wanneer de tekst over een andere onderwerp gaat of een eigen doel heeft.
8
- - Overweeg of een alinea met meer dan 7 zinnen of 140 woorden duidelijker is als je tekst indeelt in twee alinea's. Teksten met niet al te lange alinea's zijn makkelijker te begrijpen als je pauze neemt, en door het groeperen is informatie sneller terug te vinden.
7
+ - Group sentences that belong together into a paragraph.
8
+ Start a new paragraph when the text shifts to a different topic or has its own purpose.
9
+ - Consider whether a paragraph with more than 7 sentences or 140 words would be clearer if you divide the text into two paragraphs.
10
+ Texts with not overly long paragraphs are easier to understand, and grouping makes information quicker to locate.
9
11
 
10
- ## Relevante WCAG eisen
12
+ ## Relevant WCAG Rules
11
13
 
12
- - [WCAG 1.3.1](https://www.w3.org/TR/WCAG21/#info-and-relationships): Blokken die er uit zien als een alinea worden ook door een computer herkend als alinea
13
- - [WCAG 1.4.3](https://www.w3.org/TR/WCAG21/#contrast-minimum): Het contrast van zwarte tekst op een witte achtergrond is hoog genoeg
14
- - [WCAG 1.4.4](https://www.w3.org/TR/WCAG21/#resize-text): Tekst kan met zoomen en het aanpassen van de standaard tekstgrootte twee keer zo groot gemaakt worden
15
- - [WCAG 1.4.10](https://www.w3.org/TR/WCAG21/#reflow): Als de tekst breder is dan de viewport is scrollen niet nodig om alle tekst te kunnen zien
16
- - [WCAG 1.4.12](https://www.w3.org/TR/WCAG21/#text-spacing): De genoemde style properties kunnen worden aangepast zonder dat de tekst onleesbaar wordt
17
- - [WCAG 3.1.2](https://www.w3.org/TR/WCAG21/#language-of-parts): Het is aan te geven in welke taal de tekst is
18
- - [WCAG 1.4.6](https://www.w3.org/TR/WCAG21/#contrast-enhanced): Het contrast van zwarte tekst op een witte achtergrond is hoger dan 7:1
19
- - [WCAG 1.4.8](https://www.w3.org/TR/WCAG21/#visual-presentation): We voldoen niet aan al deze eisen
14
+ - [WCAG 1.3.1](https://www.w3.org/TR/WCAG21/#info-and-relationships): Blocks that look like a paragraph are also recognized by a computer as a paragraph.
15
+ - [WCAG 1.4.3](https://www.w3.org/TR/WCAG21/#contrast-minimum): The contrast of black text on a white background is high enough.
16
+ - [WCAG 1.4.4](https://www.w3.org/TR/WCAG21/#resize-text): Text can be resized up to twice its default size.
17
+ - [WCAG 1.4.10](https://www.w3.org/TR/WCAG21/#reflow): If the text is wider than the viewport, scrolling is not necessary to see all the text.
18
+ - [WCAG 1.4.12](https://www.w3.org/TR/WCAG21/#text-spacing): The mentioned style properties can be adjusted without making the text unreadable.
19
+ - [WCAG 3.1.2](https://www.w3.org/TR/WCAG21/#language-of-parts): It is possible to indicate the language of the text.
20
+ - [WCAG 1.4.6](https://www.w3.org/TR/WCAG21/#contrast-enhanced): The contrast of black text on a white background is higher than 7:1.
21
+ - [WCAG 1.4.8](https://www.w3.org/TR/WCAG21/#visual-presentation): We do not meet all these requirements.
20
22
 
21
- ## Referenties
23
+ ## References
22
24
 
23
25
  - [MDN: `<p>`: The Paragraph element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
24
26
  - [Hoe lang mag een alinea zijn? En waar hangt dat van af? - Taaladvies.net](https://taaladvies.net/lengte-van-alineas/)
@@ -1,20 +1,20 @@
1
1
  # Screen
2
2
 
3
- Verzorgt de maximale breedte en de uitlijning van de hele website of applicatie.
3
+ Manages the maximum width and alignment of the entire website or application.
4
4
 
5
- ## Gebruik
5
+ ## Usage
6
6
 
7
- Dit moet het buitenste component van je website of applicatie zijn.
8
- Daarbinnen combineer je componenten als
7
+ This should be the outermost component of your website or application.
8
+ Within it, combine components such as
9
9
  [Grid](?path=/docs/react_layout-grid--docs),
10
- Header,
10
+ [Header](?path=/docs/react_containers-header--docs),
11
11
  [Footer](?path=/docs/react_containers-footer--docs),
12
- [Spotlight](?path=/docs/react_containers-spotlight--docs)
13
- en Figure.
12
+ [Spotlight](?path=/docs/react_containers-spotlight--docs),
13
+ and Figure.
14
14
 
15
- ## Ontwerp
15
+ ## Design
16
16
 
17
- Standaard groeit dit component tot een breedte van 1600 pixels.
18
- Dit is de maximale breedte voor een website van de gemeente Amsterdam.
19
- Voor applicaties kun je kiezen voor een grotere maximale breedte van 2112 pixels.
20
- Het component centreert zowel zichzelf als zijn inhoud horizontaal.
17
+ By default, this component expands to a width of 1600 pixels.
18
+ This is the maximum width for a website of the City of Amsterdam.
19
+ For applications, you can choose a larger maximum width of 2112 pixels.
20
+ The component horizontally centres both itself and its content.
@@ -1,33 +1,33 @@
1
1
  # Search Field
2
2
 
3
- Met een Search Field (in het Nederlands: zoekveld) kunnen gebruikers snel relevante inhoud vinden. Een gebruiker voert een (deel van een) woord of zin in om daarmee inhoud te doorzoeken.
3
+ Allows users to quickly find relevant content by entering a (part of a) word or phrase to search through the content.
4
4
 
5
- ## Richtlijnen
5
+ ## Guidelines
6
6
 
7
- - Je kunt een zoekactie starten door de zoekknop of de Enter-toets te gebruiken.
8
- - Als er geen zoekterm is ingevuld kan geen zoekactie gestart worden.
7
+ - Users can initiate a search by using the search button or the Enter key.
9
8
 
10
9
  ## Autofocus
11
10
 
12
- Je kunt `autofocus` gebruiken om de focus gelijk in een zoekveld te plaatsen als de gebruiker op een pagina komt.
13
- Wees hier wel voorzichtig mee, dit kan negatieve gevolgen hebben:
11
+ You can use `autofocus` to place focus directly on a search field when the user arrives on a page.
12
+ However, use this feature with caution, as it can have negative consequences:
14
13
 
15
- - Voor gebruikers van een schermlezer kan dit betekenen dat ze belangrijk inhoud boven het zoekveld overslaan.
16
- - Op kleinere apparaten kan het gebruik van `autofocus` er voor zorgen dat de pagina automatisch naar het zoekveld scrollt, waardoor je eerdere inhoud kan missen.
17
- - Op apparaten met touchscreen kan dit ervoor zorgen dat het toetsenbord gelijk wordt getoond, waardoor belangrijke inhoud verborgen wordt.
14
+ - For screen reader users, this may result in skipping important content above the search field.
15
+ - On smaller devices, the use of `autofocus` may automatically scroll the page to the search field, potentially causing users to miss previous content.
16
+ - On touchscreen devices, this can trigger the keyboard to appear immediately, hiding important content.
18
17
 
19
- Gebruik `autofocus` alleen als het zoekveld aan het begin van een pagina staat, en er geen andere elementen op een pagina staan waar een gebruiker misschien eerst gebruik van wil maken.
18
+ Use `autofocus` only if the search field is at the beginning of a page and there are no other elements on a page that a user might want to interact with first.
20
19
 
21
- Voor meer informatie: [Accessibility Tips: Be Cautious When Using Autofocus](https://www.boia.org/blog/accessibility-tips-be-cautious-when-using-autofocus)
20
+ For more information: [Accessibility Tips: Be Cautious When Using Autofocus](https://www.boia.org/blog/accessibility-tips-be-cautious-when-using-autofocus)
22
21
 
23
- ## Autocomplete en spellcheck
22
+ ## `autocomplete` and `spellcheck`
24
23
 
25
- `autocomplete` en `spellcheck` staan standaard uit. Deze functies kunnen vervelend zijn voor een gebruiker die zoekt op een deel van een woord, en `autocomplete` kan in de weg zitten van een Autosuggest component.
24
+ Both `autocomplete` and `spellcheck` are turned off by default.
25
+ These features can be disruptive for a user searching for part of a word, and `autocomplete` may interfere with an Autosuggest component.
26
26
 
27
- ## Relevante WCAG eisen
27
+ ## Relevant WCAG Requirements
28
28
 
29
- - [WCAG 1.3.1](https://www.w3.org/TR/WCAG22/#info-and-relationships): `role="search"` wordt gebruikt voor de search landmark role.
30
- - [WCAG 1.3.5](https://www.w3.org/TR/WCAG22/#identify-input-purpose): het is zowel voor een gebruiker als programmatisch duidelijk wat het doel van een formulierveld is.
31
- - [WCAG 2.4.6](https://www.w3.org/TR/WCAG22/#headings-and-labels): er is een label dat het doel van de input beschrijft.
29
+ - [WCAG 1.3.1](https://www.w3.org/TR/WCAG22/#info-and-relationships): `role="search"` is used for the search landmark role.
30
+ - [WCAG 1.3.5](https://www.w3.org/TR/WCAG22/#identify-input-purpose): It is clear both to the user and programmatically what the purpose of a form field is.
31
+ - [WCAG 2.4.6](https://www.w3.org/TR/WCAG22/#headings-and-labels): There is a label describing the purpose of the input.
32
32
 
33
- Search Field is een interactief element, hier gelden [de algemene eisen en richtlijnen voor interactieve elementen](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) voor.
33
+ Search Field is an interactive element; therefore, [the general requirements and guidelines for interactive elements](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) apply.
@@ -5,7 +5,7 @@
5
5
 
6
6
  .amsterdam-search-field {
7
7
  display: flex;
8
- isolation: isolate; // create new stacking context, so the input's z-index doesn't escape the component
8
+ isolation: isolate; // create new stacking context, so the inputs z-index doesnt escape the component
9
9
  }
10
10
 
11
11
  @mixin reset {
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  &:focus {
43
- z-index: 1; // Make sure the focus outline isn't cut off by the adjacent button
43
+ z-index: 1; // Make sure the focus outline isnt cut off by the adjacent button
44
44
  }
45
45
  }
46
46
 
@@ -67,14 +67,6 @@
67
67
  padding-inline: 0.5rem;
68
68
  touch-action: manipulation;
69
69
 
70
- span {
71
- display: flex;
72
- justify-content: center;
73
-
74
- // use icon tokens to set width equal to height
75
- width: calc(var(--amsterdam-icon-spacious-size-6-font-size) * var(--amsterdam-icon-spacious-size-6-line-height));
76
- }
77
-
78
70
  &:hover {
79
71
  background-color: var(--amsterdam-search-field-button-hover-background-color);
80
72
  }
@@ -1,33 +1,26 @@
1
1
  # Skip Link
2
2
 
3
- Gebruik een Skip Link om makkelijk met het toetsenbord naar de belangrijkste inhoud te navigeren.
4
- Met een Skip Link kun je terugkerende navigatieblokken (zoals het hoofdmenu of het kruimelpad) overslaan.
3
+ Use a Skip Link to navigate to the main content quickly with the keyboard.
4
+ A Skip Link allows skipping recurring navigation blocks, such as the main menu or breadcrumb trail.
5
5
 
6
- De Skip Link staat boven de header.
7
- De link is verborgen totdat deze met de tab-toets geactiveerd wordt.
8
- Als de link getoond wordt, duwt deze de hele pagina omlaag.
6
+ The Skip Link is placed above the header.
7
+ The link is hidden until activated with the tab key.
8
+ When the link is shown, it pushes the entire page down.
9
9
 
10
- ## Richtlijnen
10
+ ## Guidelines
11
11
 
12
- ### Zo gebruiken
12
+ ### How to Use
13
13
 
14
- - Plaats de Skip Link als eerste element in `<body>`, tenzij je een cookie-banner hebt.
15
- Plaats de Skip Link dan direct na de cookie-banner.
16
- - Gebruik de Skip Link om naar de belangrijkste inhoud te navigeren.
17
- Op een artikelpagina is dat bijvoorbeeld de titel van het artikel, op een zoekpagina is dat het zoekveld.
18
- - Voor complexe pagina's met meerdere secties kun je meer dan 1 Skip Link gebruiken.
19
- In de meeste gevallen is dit niet nodig.
14
+ - Place the Skip Link as the first element in `<body>` unless you have a cookie banner.
15
+ In that case, place the Skip Link immediately after the cookie banner.
16
+ - Use the Skip Link to navigate to the main content.
17
+ On an article page, for example, it could be the title of the article; on a search page, it could be the search field.
18
+ - Set `id="example-id"` on the container of that element and then use `href="#example-id"` on the Skip Link.
19
+ - You can use more than one Skip Link for complex pages with multiple sections.
20
+ In most cases, this is not necessary.
20
21
 
21
- ### Dit vermijden
22
+ ### Avoid
22
23
 
23
- - Skip Links zijn niet nodig op een simpele pagina waar alleen tekst staat en weinig navigatie.
24
- Het doel van een Skip Link is om terugkerende navigatieblokken over te slaan.
25
- Als die blokken er niet zijn, is een Skip Link niet nodig.
26
- - Plaats de Skip Link niet in een `nav` regio, of in de Header.
27
-
28
- ## Relevante WCAG eisen
29
-
30
- - Voor dit component gelden dezelfde WCAG eisen als voor [het link component](https://amsterdam.github.io/design-system/?path=/docs/react_navigation-link--docs).
31
- - [WCAG 2.4.1](https://www.w3.org/TR/WCAG22/#bypass-blocks): gebruik een Skip Link op elke pagina die begint met een terugkerend navigatieblok.
32
- - [WCAG 3.2.3](https://www.w3.org/TR/WCAG22/#consistent-navigation): een Skip Link staat op elke pagina op dezelfde plek.
33
- - [WCAG 3.2.4](https://www.w3.org/TR/WCAG22/#consistent-identification): een Skip Link heeft dezelfde labels op alle pagina's. Bijvoorbeeld niet: "Navigatie overslaan" op een gedeelte van de site, en "Naar de inhoud" op andere pagina's.
24
+ - Skip Links are unnecessary on a simple page with only text and minimal navigation.
25
+ The purpose of a Skip Link is to bypass recurring navigation blocks.
26
+ If those blocks are not present, a Skip Link is not needed.
@@ -1,15 +1,15 @@
1
1
  # Spotlight
2
2
 
3
- Benadrukt een sectie op een pagina middels een opvallende achtergrondkleur.
3
+ Emphasizes a section on a page through a distinctive background colour.
4
4
 
5
- ## Richtlijnen
5
+ ## Guidelines
6
6
 
7
- Raadpleeg [dit overzicht op Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/kleuren/#PagCls_15671872) om na te gaan of je zwarte of witte tekst kunt gebruiken op de achtergrondkleur van je keuze.
7
+ Refer to [this overview on Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/kleuren/#PagCls_15671872) to determine whether you can use black or white text on the background colour of your choice.
8
8
 
9
- ## Relevante WCAG eisen
9
+ ## Relevant WCAG Requirements
10
10
 
11
11
  - [WCAG 1.4.3](https://www.w3.org/TR/WCAG21/#contrast-minimum): Large-scale text and images of large-scale text have a contrast ratio of at least 3:1;
12
12
 
13
- ## Referenties
13
+ ## References
14
14
 
15
15
  - [Color and contrast accessibility](https://web.dev/articles/color-and-contrast-accessibility)
@@ -7,6 +7,10 @@
7
7
  background-color: var(--amsterdam-spotlight-blue-background-color);
8
8
  }
9
9
 
10
+ .amsterdam-spotlight--dark-blue {
11
+ background-color: var(--amsterdam-spotlight-dark-blue-background-color);
12
+ }
13
+
10
14
  .amsterdam-spotlight--dark-green {
11
15
  background-color: var(--amsterdam-spotlight-dark-green-background-color);
12
16
  }
@@ -15,10 +19,6 @@
15
19
  background-color: var(--amsterdam-spotlight-green-background-color);
16
20
  }
17
21
 
18
- .amsterdam-spotlight--light-blue {
19
- background-color: var(--amsterdam-spotlight-light-blue-background-color);
20
- }
21
-
22
22
  .amsterdam-spotlight--magenta {
23
23
  background-color: var(--amsterdam-spotlight-magenta-background-color);
24
24
  }