@amsterdam/design-system-css 0.5.0 → 0.6.1

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 (157) hide show
  1. package/CHANGELOG.md +45 -4
  2. package/dist/accordion/accordion.css +1 -1
  3. package/dist/accordion/accordion.css.map +1 -1
  4. package/dist/alert/alert.css +1 -1
  5. package/dist/alert/alert.css.map +1 -1
  6. package/dist/blockquote/blockquote.css.map +1 -1
  7. package/dist/button/button.css +1 -1
  8. package/dist/button/button.css.map +1 -1
  9. package/dist/checkbox/checkbox.css +1 -1
  10. package/dist/checkbox/checkbox.css.map +1 -1
  11. package/dist/column/column.css +1 -0
  12. package/dist/column/column.css.map +1 -0
  13. package/dist/dialog/dialog.css +1 -1
  14. package/dist/dialog/dialog.css.map +1 -1
  15. package/dist/fieldset/fieldset.css +1 -0
  16. package/dist/fieldset/fieldset.css.map +1 -0
  17. package/dist/form-label/form-label.css.map +1 -1
  18. package/dist/gap/gap.css +1 -0
  19. package/dist/gap/gap.css.map +1 -0
  20. package/dist/grid/grid.css +1 -1
  21. package/dist/grid/grid.css.map +1 -1
  22. package/dist/header/header.css +1 -1
  23. package/dist/header/header.css.map +1 -1
  24. package/dist/heading/heading.css.map +1 -1
  25. package/dist/index.css +1 -1
  26. package/dist/index.css.map +1 -1
  27. package/dist/link-list/link-list.css.map +1 -1
  28. package/dist/margin/margin.css +1 -0
  29. package/dist/margin/margin.css.map +1 -0
  30. package/dist/mega-menu/mega-menu.css.map +1 -1
  31. package/dist/ordered-list/ordered-list.css +1 -1
  32. package/dist/ordered-list/ordered-list.css.map +1 -1
  33. package/dist/page-heading/page-heading.css.map +1 -1
  34. package/dist/pagination/pagination.css +1 -1
  35. package/dist/pagination/pagination.css.map +1 -1
  36. package/dist/radio/radio.css +1 -0
  37. package/dist/radio/radio.css.map +1 -0
  38. package/dist/row/row.css +1 -0
  39. package/dist/row/row.css.map +1 -0
  40. package/dist/search-field/search-field.css +1 -1
  41. package/dist/search-field/search-field.css.map +1 -1
  42. package/dist/skip-link/skip-link.css +1 -1
  43. package/dist/skip-link/skip-link.css.map +1 -1
  44. package/dist/switch/switch.css +1 -1
  45. package/dist/switch/switch.css.map +1 -1
  46. package/dist/table/table.css +1 -1
  47. package/dist/table/table.css.map +1 -1
  48. package/dist/tabs/tabs.css +1 -0
  49. package/dist/tabs/tabs.css.map +1 -0
  50. package/dist/text-area/text-area.css +1 -0
  51. package/dist/text-area/text-area.css.map +1 -0
  52. package/dist/text-input/text-input.css +1 -1
  53. package/dist/text-input/text-input.css.map +1 -1
  54. package/dist/top-task-link/top-task-link.css.map +1 -1
  55. package/dist/unordered-list/unordered-list.css +1 -1
  56. package/dist/unordered-list/unordered-list.css.map +1 -1
  57. package/package.json +3 -3
  58. package/src/common/breakpoint.scss +1 -1
  59. package/src/common/calculate-fluid-style.scss +1 -1
  60. package/src/common/hide-input.scss +11 -0
  61. package/src/common/hyphenation.scss +5 -0
  62. package/src/common/input-label-focus.scss +21 -0
  63. package/src/common/size.scss +13 -0
  64. package/src/components/accordion/README.md +2 -0
  65. package/src/components/accordion/accordion.scss +5 -5
  66. package/src/components/alert/README.md +4 -2
  67. package/src/components/alert/alert.scss +3 -5
  68. package/src/components/aspect-ratio/README.md +2 -0
  69. package/src/components/aspect-ratio/aspect-ratio.scss +1 -1
  70. package/src/components/badge/README.md +2 -0
  71. package/src/components/badge/badge.scss +1 -1
  72. package/src/components/blockquote/README.md +2 -0
  73. package/src/components/blockquote/blockquote.scss +1 -1
  74. package/src/components/breadcrumb/README.md +2 -0
  75. package/src/components/breadcrumb/breadcrumb.scss +1 -1
  76. package/src/components/button/README.md +3 -1
  77. package/src/components/button/button.scss +56 -10
  78. package/src/components/card/README.md +5 -3
  79. package/src/components/card/card.scss +1 -1
  80. package/src/components/checkbox/README.md +3 -1
  81. package/src/components/checkbox/checkbox.scss +16 -19
  82. package/src/components/column/README.md +5 -0
  83. package/src/components/column/column.scss +16 -0
  84. package/src/components/dialog/README.md +2 -0
  85. package/src/components/dialog/dialog.scss +3 -2
  86. package/src/components/fieldset/README.md +18 -0
  87. package/src/components/fieldset/fieldset.scss +34 -0
  88. package/src/components/footer/README.md +2 -0
  89. package/src/components/form-label/README.md +2 -0
  90. package/src/components/form-label/form-label.scss +1 -1
  91. package/src/components/gap/README.md +5 -0
  92. package/src/components/gap/gap.scss +16 -0
  93. package/src/components/grid/README.md +5 -3
  94. package/src/components/grid/grid.scss +14 -13
  95. package/src/components/header/README.md +2 -0
  96. package/src/components/header/header.scss +5 -5
  97. package/src/components/heading/README.md +2 -0
  98. package/src/components/heading/heading.scss +1 -1
  99. package/src/components/icon/README.md +3 -1
  100. package/src/components/icon/icon.scss +1 -1
  101. package/src/components/icon-button/README.md +3 -1
  102. package/src/components/icon-button/icon-button.scss +1 -1
  103. package/src/components/image/README.md +3 -1
  104. package/src/components/image/image.scss +2 -2
  105. package/src/components/index.scss +9 -1
  106. package/src/components/link/README.md +2 -0
  107. package/src/components/link/link.scss +1 -1
  108. package/src/components/link-list/README.md +3 -1
  109. package/src/components/link-list/link-list.scss +1 -1
  110. package/src/components/logo/README.md +4 -1
  111. package/src/components/logo/logo.scss +1 -1
  112. package/src/components/margin/README.md +5 -0
  113. package/src/components/margin/margin.scss +12 -0
  114. package/src/components/mark/README.md +2 -0
  115. package/src/components/mark/mark.scss +1 -1
  116. package/src/components/mega-menu/README.md +2 -0
  117. package/src/components/mega-menu/mega-menu.scss +3 -1
  118. package/src/components/ordered-list/README.md +2 -0
  119. package/src/components/ordered-list/ordered-list.scss +6 -2
  120. package/src/components/overlap/README.md +2 -0
  121. package/src/components/overlap/overlap.scss +1 -1
  122. package/src/components/page-heading/README.md +3 -1
  123. package/src/components/page-heading/page-heading.scss +1 -1
  124. package/src/components/page-menu/README.md +3 -1
  125. package/src/components/page-menu/page-menu.scss +1 -1
  126. package/src/components/pagination/README.md +3 -1
  127. package/src/components/pagination/pagination.scss +2 -2
  128. package/src/components/paragraph/README.md +2 -0
  129. package/src/components/paragraph/paragraph.scss +1 -1
  130. package/src/components/radio/README.md +18 -0
  131. package/src/components/radio/radio.scss +157 -0
  132. package/src/components/row/README.md +3 -0
  133. package/src/components/row/row.scss +17 -0
  134. package/src/components/screen/README.md +6 -4
  135. package/src/components/screen/screen.scss +1 -1
  136. package/src/components/search-field/README.md +3 -1
  137. package/src/components/search-field/search-field.scss +7 -5
  138. package/src/components/skip-link/README.md +2 -0
  139. package/src/components/skip-link/skip-link.scss +3 -3
  140. package/src/components/spotlight/README.md +2 -0
  141. package/src/components/spotlight/spotlight.scss +1 -1
  142. package/src/components/switch/README.md +3 -1
  143. package/src/components/switch/switch.scss +11 -10
  144. package/src/components/table/README.md +3 -1
  145. package/src/components/table/table.scss +3 -3
  146. package/src/components/tabs/README.md +32 -0
  147. package/src/components/tabs/tabs.scss +41 -0
  148. package/src/components/text-area/README.md +17 -0
  149. package/src/components/text-area/text-area.scss +70 -0
  150. package/src/components/text-input/README.md +2 -0
  151. package/src/components/text-input/text-input.scss +3 -3
  152. package/src/components/top-task-link/README.md +5 -3
  153. package/src/components/top-task-link/top-task-link.scss +1 -1
  154. package/src/components/unordered-list/README.md +2 -0
  155. package/src/components/unordered-list/unordered-list.scss +6 -2
  156. package/src/components/visually-hidden/README.md +2 -0
  157. package/src/components/visually-hidden/visually-hidden.scss +1 -1
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Grid
2
4
 
3
5
  Divides the screen into columns to align the elements of a page.
@@ -5,9 +7,9 @@ Divides the screen into columns to align the elements of a page.
5
7
  ## Usage
6
8
 
7
9
  Every page should use the grid as the foundation for its layout.
8
- It is placed directly within the [Screen](?path=/docs/layout-screen--docs).
10
+ It is placed directly within the [Screen](/docs/components-layout-screen--docs).
9
11
 
10
- A [Footer](?path=/docs/react_containers-footer--docs) and a [Spotlight](?path=/docs/react_containers-spotlight--docs) are slightly wider than the grid.
12
+ A [Footer](/docs/components-containers-footer--docs) and a [Spotlight](/docs/components-containers-spotlight--docs) are slightly wider than the grid.
11
13
  You close one instance of the grid before these components.
12
14
  Inside and optionally after them, you start a new one.
13
15
  Multiple instances of the grid component are possible on a page, but the columns of all grids must align precisely.
@@ -17,4 +19,4 @@ A cell often spans multiple columns of the grid.
17
19
 
18
20
  ## Design
19
21
 
20
- The [design choices](?path=/docs/docs-designrichtlijnen-grid--docs) are described in the design guidelines.
22
+ The [design choices](/docs/docs-design-guidelines-grid--docs) are described in the design guidelines.
@@ -1,15 +1,16 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @import "../../common/breakpoint";
7
7
 
8
8
  .amsterdam-grid {
9
+ column-gap: var(--amsterdam-grid-column-gap);
9
10
  display: grid;
10
- gap: var(--amsterdam-grid-gap);
11
11
  grid-template-columns: repeat(var(--amsterdam-grid-column-count), 1fr);
12
12
  padding-inline: var(--amsterdam-grid-padding-inline);
13
+ row-gap: var(--amsterdam-grid-row-gap-md);
13
14
 
14
15
  @media screen and (min-width: $amsterdam-breakpoint-medium) {
15
16
  grid-template-columns: repeat(var(--amsterdam-grid-medium-column-count), 1fr);
@@ -25,47 +26,47 @@
25
26
  }
26
27
 
27
28
  .amsterdam-grid--gap-vertical--small {
28
- row-gap: calc(var(--amsterdam-grid-gap) / 2);
29
+ row-gap: var(--amsterdam-grid-row-gap-sm);
29
30
  }
30
31
 
31
32
  .amsterdam-grid--gap-vertical--large {
32
- row-gap: calc(var(--amsterdam-grid-gap) * 2);
33
+ row-gap: var(--amsterdam-grid-row-gap-lg);
33
34
  }
34
35
 
35
36
  .amsterdam-grid--padding-bottom--small {
36
- padding-block-end: calc(var(--amsterdam-grid-gap) / 2);
37
+ padding-block-end: var(--amsterdam-grid-padding-block-sm);
37
38
  }
38
39
 
39
40
  .amsterdam-grid--padding-bottom--medium {
40
- padding-block-end: var(--amsterdam-grid-gap);
41
+ padding-block-end: var(--amsterdam-grid-padding-block-md);
41
42
  }
42
43
 
43
44
  .amsterdam-grid--padding-bottom--large {
44
- padding-block-end: calc(var(--amsterdam-grid-gap) * 2);
45
+ padding-block-end: var(--amsterdam-grid-padding-block-lg);
45
46
  }
46
47
 
47
48
  .amsterdam-grid--padding-top--small {
48
- padding-block-start: calc(var(--amsterdam-grid-gap) / 2);
49
+ padding-block-start: var(--amsterdam-grid-padding-block-sm);
49
50
  }
50
51
 
51
52
  .amsterdam-grid--padding-top--medium {
52
- padding-block-start: var(--amsterdam-grid-gap);
53
+ padding-block-start: var(--amsterdam-grid-padding-block-md);
53
54
  }
54
55
 
55
56
  .amsterdam-grid--padding-top--large {
56
- padding-block-start: calc(var(--amsterdam-grid-gap) * 2);
57
+ padding-block-start: var(--amsterdam-grid-padding-block-lg);
57
58
  }
58
59
 
59
60
  .amsterdam-grid--padding-vertical--small {
60
- padding-block: calc(var(--amsterdam-grid-gap) / 2);
61
+ padding-block: var(--amsterdam-grid-padding-block-sm);
61
62
  }
62
63
 
63
64
  .amsterdam-grid--padding-vertical--medium {
64
- padding-block: var(--amsterdam-grid-gap);
65
+ padding-block: var(--amsterdam-grid-padding-block-md);
65
66
  }
66
67
 
67
68
  .amsterdam-grid--padding-vertical--large {
68
- padding-block: calc(var(--amsterdam-grid-gap) * 2);
69
+ padding-block: var(--amsterdam-grid-padding-block-lg);
69
70
  }
70
71
 
71
72
  .amsterdam-grid__cell--span-all {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Header
2
4
 
3
5
  Arranges the City’s logo, the title of the website, and a page menu.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @import "../../common/breakpoint";
@@ -9,7 +9,7 @@
9
9
  align-items: center;
10
10
  display: flex;
11
11
  flex-wrap: wrap;
12
- padding-block: 1rem;
12
+ padding-block: var(--amsterdam-header-padding-block);
13
13
  row-gap: 1.5rem;
14
14
 
15
15
  @media screen and (min-width: $amsterdam-breakpoint-wide) {
@@ -18,9 +18,9 @@
18
18
  }
19
19
  }
20
20
 
21
- .amsterdam-header__logo {
21
+ .amsterdam-header__logo-link {
22
22
  flex: none;
23
- outline-offset: var(--amsterdam-link-outline-offset);
23
+ outline-offset: var(--amsterdam-header-logo-link-outline-offset);
24
24
  }
25
25
 
26
26
  .amsterdam-header__links {
@@ -38,7 +38,7 @@
38
38
 
39
39
  .amsterdam-header__menu {
40
40
  flex: 1;
41
- padding-inline-start: var(--amsterdam-page-menu-column-gap);
41
+ padding-inline-start: var(--amsterdam-page-menu-column-gap); // TODO Don’t use tokens of another component
42
42
  text-align: end;
43
43
 
44
44
  @media screen and (min-width: $amsterdam-breakpoint-wide) {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Heading
2
4
 
3
5
  A heading conveys information about the content below it.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @import "../../common/hyphenation";
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Icon
2
4
 
3
5
  Icons are visual symbols used to represent ideas, themes, or actions.
@@ -26,4 +28,4 @@ Icons are aligned to the left of the text by default and vertically centred to t
26
28
 
27
29
  Icons use the same text levels as all typographic components to determine their size.
28
30
  This ensures easy alignment between icons and text.
29
- [Refer to the typography documentation for more information](/docs/docs-designrichtlijnen-typografie--docs#tekstniveaus).
31
+ [Refer to the typography documentation for more information](/docs/docs-design-guidelines-typography--docs).
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-icon {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Icon Button
2
4
 
3
5
  A button containing only an icon.
@@ -11,4 +13,4 @@ A button containing only an icon.
11
13
 
12
14
  ## Relevant WCAG Requirements
13
15
 
14
- The Icon Button follows [the same requirements and guidelines as a regular button](https://amsterdam.github.io/design-system/?path=/docs/react_buttons-button--docs).
16
+ The Icon Button follows [the same requirements and guidelines as a regular button](/docs/components-buttons-button--docs).
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Image
2
4
 
3
5
  Displays an image.
@@ -13,7 +15,7 @@ Displays an image.
13
15
  For example, provide small, medium, and large variants for various screen sizes.
14
16
  This prevents unnecessary downloading of large files.
15
17
  Do this especially for the main image of a page, where the difference between sizes on a narrow and wide screen is most significant.
16
- - Ensure that the aspect ratio of the image is supported by the [Aspect Ratio](?path=/docs/layout-aspect-ratio--docs) component.
18
+ - Ensure that the aspect ratio of the image is supported by the [Aspect Ratio](/docs/components-layout-aspect-ratio--docs) component.
17
19
 
18
20
  ## Relevant WCAG Requirements
19
21
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-image {
@@ -15,6 +15,6 @@
15
15
  }
16
16
 
17
17
  // [1] Allow for fluid image sizing while maintaining aspect ratio governed by width/height attributes
18
- // [2] Remove ‘phantom’ whitespace
18
+ // [2] Remove ‘phantom’ white space
19
19
  // [3] Italicise alt text to visually offset it from surrounding copy
20
20
  // Source: https://x.com/csswizardry/status/1717841334462005661
@@ -1,9 +1,17 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  /* Append here */
7
+ @import "./row/row";
8
+ @import "./radio/radio";
9
+ @import "./tabs/tabs";
10
+ @import "./text-area/text-area";
11
+ @import "./column/column";
12
+ @import "./margin/margin";
13
+ @import "./gap/gap";
14
+ @import "./fieldset/fieldset";
7
15
  @import "./link-list/link-list";
8
16
  @import "./badge/badge";
9
17
  @import "./table/table";
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Link
2
4
 
3
5
  A link is a navigation element and can be used independently or inline with text.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Link List
2
4
 
3
5
  A collection of related links.
@@ -13,4 +15,4 @@ Therefore, it is blue and clickable.
13
15
 
14
16
  Use a Link List to present multiple links within a theme.
15
17
 
16
- For additional guidelines, refer to the [Link](?path=/docs/navigation-link--docs) component.
18
+ For additional guidelines, refer to the [Link](/docs/components-navigation-link--docs) component.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2024 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @import "../../common/hyphenation";
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Logo
2
4
 
3
5
  The City’s logo includes an icon (3 Saint Andrew’s crosses) and a wordmark (Gemeente Amsterdam).
@@ -14,12 +16,13 @@ In the meantime, you can download an image of this logo from [Stijlweb](https://
14
16
 
15
17
  ## Exception
16
18
 
17
- Use a sub-brand logo if the website is owned by one of the 4 sub-brands.
19
+ Use a sub-brand logo if the website is owned by one of the 5 sub-brands.
18
20
  They have a separate status because of their unique service provision not directly associated with the City.
19
21
 
20
22
  The sub-brands are:
21
23
 
22
24
  - GGD Amsterdam
25
+ - Museum Weesp
23
26
  - Stadsarchief
24
27
  - Stadsbank van Lening
25
28
  - VGA Verzekeringen
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-logo {
@@ -0,0 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ # Margin
4
+
5
+ Use these utility classes to add white space below a single element.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright Gemeente Amsterdam
4
+ */
5
+
6
+ @import "../../common/size";
7
+
8
+ @each $size in map-keys($amsterdam-sizes) {
9
+ .amsterdam-mb--#{$size} {
10
+ margin-block-end: var(--amsterdam-margin-#{$size}) !important;
11
+ }
12
+ }
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Mark
2
4
 
3
5
  Highlights a text fragment using a yellow background.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-mark {
@@ -1 +1,3 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Mega Menu
@@ -1,11 +1,13 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-mega-menu__list-category {
7
7
  column-gap: var(--amsterdam-mega-menu-list-category-column-gap);
8
8
  column-width: var(--amsterdam-mega-menu-list-category-column-width);
9
+
10
+ // TODO Move to bottom margin of heading
9
11
  padding-block-start: var(--amsterdam-mega-menu-list-category-padding-block-start);
10
12
 
11
13
  &:not(:last-child) {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Ordered List
2
4
 
3
5
  An ordered list is a vertical group of related content with an order.
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
- /** Apply border box sizing, reset whitespace and list styles. */
6
+ /** Apply border box sizing, reset white space and list styles. */
7
7
  @mixin reset {
8
8
  box-sizing: border-box;
9
9
  list-style-type: none;
@@ -36,6 +36,10 @@
36
36
  }
37
37
  }
38
38
 
39
+ .amsterdam-ordered-list--inverse-color:not(.amsterdam-ordered-list--no-markers) {
40
+ color: var(--amsterdam-ordered-list-inverse-color);
41
+ }
42
+
39
43
  /** A nested list has a different marker and less indentation for correct alignment. */
40
44
  :is(.amsterdam-ordered-list, .amsterdam-unordered-list) .amsterdam-ordered-list {
41
45
  list-style-type: var(--amsterdam-ordered-list-ordered-list-list-style-type);
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Overlap
2
4
 
3
5
  Displays two or more components on top of each other.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-overlap {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Page Heading
2
4
 
3
5
  The page heading component is a prominent text at the beginning of a page, immediately after the header.
@@ -14,4 +16,4 @@ Use this component for a name, title, or motto.
14
16
  The page heading component is a variant of a heading level 1 with a distinct style.
15
17
  When using this component, ensure that the heading hierarchy of the page remains logical.
16
18
 
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).
19
+ For this component, the same WCAG requirements apply as for [the heading component](/docs/components-text-heading--docs).
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @import "../../common/hyphenation";
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Page Menu
2
4
 
3
5
  A small set of links for use in the Header and Footer.
@@ -15,4 +17,4 @@ A small set of links for use in the Header and Footer.
15
17
 
16
18
  - [Consistent Navigation (Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html)
17
19
 
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.
20
+ PageMenu is an interactive element, and the [general requirements and guidelines for interactive elements](/docs/docs-design-guidelines-interactive-elements--docs) apply.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset-list {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Pagination
2
4
 
3
5
  Pagination is a navigation element used to navigate between multiple pages of overview lists.
@@ -16,4 +18,4 @@ Pagination indicates the current page and allows users to navigate to other page
16
18
 
17
19
  ## Relevant WCAG Rules
18
20
 
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.
21
+ Pagination is an interactive element, and the [general requirements and guidelines for interactive elements](/docs/docs-design-guidelines-interactive-elements--docs) apply.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin list-reset {
@@ -38,7 +38,7 @@
38
38
  display: flex;
39
39
  gap: 0.5rem;
40
40
  outline-offset: var(--amsterdam-pagination-button-outline-offset);
41
- padding-inline: 0.75rem;
41
+ padding-inline: var(--amsterdam-pagination-button-padding-inline);
42
42
  text-decoration-line: var(--amsterdam-pagination-button-text-decoration-line);
43
43
  text-decoration-thickness: var(--amsterdam-pagination-button-text-decoration-thickness);
44
44
  text-underline-offset: var(--amsterdam-pagination-button-text-underline-offset);
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Paragraph
2
4
 
3
5
  Represents a paragraph of running text, form instructions, and other standalone text fragments.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset {
@@ -0,0 +1,18 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ # Radio
4
+
5
+ Allows users to select one option from a list.
6
+
7
+ ## Guidelines
8
+
9
+ - Do not assume that users will know how many options they can select based on the visual difference between radios and checkboxes alone.
10
+ If needed, add a hint explaining this, for example, ‘Select one option’.
11
+ - Order radio options alphabetically by default.
12
+ In some cases, it can be helpful to order them from most-to-least common options.
13
+ For example, you could order options for ‘Where do you live?’ based on population size.
14
+ However you should do this with extreme caution as it can reinforce bias.
15
+ If in doubt, order alphabetically.
16
+ - Labels should be concise. Try to keep labels shorter than 4 words.
17
+
18
+ Use a [Checkbox](/docs/components-forms-checkbox--docs) when a user can select more than 1 option from a list.