@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.
- package/CHANGELOG.md +45 -4
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/alert/alert.css +1 -1
- package/dist/alert/alert.css.map +1 -1
- package/dist/blockquote/blockquote.css.map +1 -1
- package/dist/button/button.css +1 -1
- package/dist/button/button.css.map +1 -1
- package/dist/checkbox/checkbox.css +1 -1
- package/dist/checkbox/checkbox.css.map +1 -1
- package/dist/column/column.css +1 -0
- package/dist/column/column.css.map +1 -0
- package/dist/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/fieldset/fieldset.css +1 -0
- package/dist/fieldset/fieldset.css.map +1 -0
- package/dist/form-label/form-label.css.map +1 -1
- package/dist/gap/gap.css +1 -0
- package/dist/gap/gap.css.map +1 -0
- package/dist/grid/grid.css +1 -1
- package/dist/grid/grid.css.map +1 -1
- package/dist/header/header.css +1 -1
- package/dist/header/header.css.map +1 -1
- package/dist/heading/heading.css.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/link-list/link-list.css.map +1 -1
- package/dist/margin/margin.css +1 -0
- package/dist/margin/margin.css.map +1 -0
- package/dist/mega-menu/mega-menu.css.map +1 -1
- package/dist/ordered-list/ordered-list.css +1 -1
- package/dist/ordered-list/ordered-list.css.map +1 -1
- package/dist/page-heading/page-heading.css.map +1 -1
- package/dist/pagination/pagination.css +1 -1
- package/dist/pagination/pagination.css.map +1 -1
- package/dist/radio/radio.css +1 -0
- package/dist/radio/radio.css.map +1 -0
- package/dist/row/row.css +1 -0
- package/dist/row/row.css.map +1 -0
- package/dist/search-field/search-field.css +1 -1
- package/dist/search-field/search-field.css.map +1 -1
- package/dist/skip-link/skip-link.css +1 -1
- package/dist/skip-link/skip-link.css.map +1 -1
- package/dist/switch/switch.css +1 -1
- package/dist/switch/switch.css.map +1 -1
- package/dist/table/table.css +1 -1
- package/dist/table/table.css.map +1 -1
- package/dist/tabs/tabs.css +1 -0
- package/dist/tabs/tabs.css.map +1 -0
- package/dist/text-area/text-area.css +1 -0
- package/dist/text-area/text-area.css.map +1 -0
- package/dist/text-input/text-input.css +1 -1
- package/dist/text-input/text-input.css.map +1 -1
- package/dist/top-task-link/top-task-link.css.map +1 -1
- package/dist/unordered-list/unordered-list.css +1 -1
- package/dist/unordered-list/unordered-list.css.map +1 -1
- package/package.json +3 -3
- package/src/common/breakpoint.scss +1 -1
- package/src/common/calculate-fluid-style.scss +1 -1
- package/src/common/hide-input.scss +11 -0
- package/src/common/hyphenation.scss +5 -0
- package/src/common/input-label-focus.scss +21 -0
- package/src/common/size.scss +13 -0
- package/src/components/accordion/README.md +2 -0
- package/src/components/accordion/accordion.scss +5 -5
- package/src/components/alert/README.md +4 -2
- package/src/components/alert/alert.scss +3 -5
- package/src/components/aspect-ratio/README.md +2 -0
- package/src/components/aspect-ratio/aspect-ratio.scss +1 -1
- package/src/components/badge/README.md +2 -0
- package/src/components/badge/badge.scss +1 -1
- package/src/components/blockquote/README.md +2 -0
- package/src/components/blockquote/blockquote.scss +1 -1
- package/src/components/breadcrumb/README.md +2 -0
- package/src/components/breadcrumb/breadcrumb.scss +1 -1
- package/src/components/button/README.md +3 -1
- package/src/components/button/button.scss +56 -10
- package/src/components/card/README.md +5 -3
- package/src/components/card/card.scss +1 -1
- package/src/components/checkbox/README.md +3 -1
- package/src/components/checkbox/checkbox.scss +16 -19
- package/src/components/column/README.md +5 -0
- package/src/components/column/column.scss +16 -0
- package/src/components/dialog/README.md +2 -0
- package/src/components/dialog/dialog.scss +3 -2
- package/src/components/fieldset/README.md +18 -0
- package/src/components/fieldset/fieldset.scss +34 -0
- package/src/components/footer/README.md +2 -0
- package/src/components/form-label/README.md +2 -0
- package/src/components/form-label/form-label.scss +1 -1
- package/src/components/gap/README.md +5 -0
- package/src/components/gap/gap.scss +16 -0
- package/src/components/grid/README.md +5 -3
- package/src/components/grid/grid.scss +14 -13
- package/src/components/header/README.md +2 -0
- package/src/components/header/header.scss +5 -5
- package/src/components/heading/README.md +2 -0
- package/src/components/heading/heading.scss +1 -1
- package/src/components/icon/README.md +3 -1
- package/src/components/icon/icon.scss +1 -1
- package/src/components/icon-button/README.md +3 -1
- package/src/components/icon-button/icon-button.scss +1 -1
- package/src/components/image/README.md +3 -1
- package/src/components/image/image.scss +2 -2
- package/src/components/index.scss +9 -1
- package/src/components/link/README.md +2 -0
- package/src/components/link/link.scss +1 -1
- package/src/components/link-list/README.md +3 -1
- package/src/components/link-list/link-list.scss +1 -1
- package/src/components/logo/README.md +4 -1
- package/src/components/logo/logo.scss +1 -1
- package/src/components/margin/README.md +5 -0
- package/src/components/margin/margin.scss +12 -0
- package/src/components/mark/README.md +2 -0
- package/src/components/mark/mark.scss +1 -1
- package/src/components/mega-menu/README.md +2 -0
- package/src/components/mega-menu/mega-menu.scss +3 -1
- package/src/components/ordered-list/README.md +2 -0
- package/src/components/ordered-list/ordered-list.scss +6 -2
- package/src/components/overlap/README.md +2 -0
- package/src/components/overlap/overlap.scss +1 -1
- package/src/components/page-heading/README.md +3 -1
- package/src/components/page-heading/page-heading.scss +1 -1
- package/src/components/page-menu/README.md +3 -1
- package/src/components/page-menu/page-menu.scss +1 -1
- package/src/components/pagination/README.md +3 -1
- package/src/components/pagination/pagination.scss +2 -2
- package/src/components/paragraph/README.md +2 -0
- package/src/components/paragraph/paragraph.scss +1 -1
- package/src/components/radio/README.md +18 -0
- package/src/components/radio/radio.scss +157 -0
- package/src/components/row/README.md +3 -0
- package/src/components/row/row.scss +17 -0
- package/src/components/screen/README.md +6 -4
- package/src/components/screen/screen.scss +1 -1
- package/src/components/search-field/README.md +3 -1
- package/src/components/search-field/search-field.scss +7 -5
- package/src/components/skip-link/README.md +2 -0
- package/src/components/skip-link/skip-link.scss +3 -3
- package/src/components/spotlight/README.md +2 -0
- package/src/components/spotlight/spotlight.scss +1 -1
- package/src/components/switch/README.md +3 -1
- package/src/components/switch/switch.scss +11 -10
- package/src/components/table/README.md +3 -1
- package/src/components/table/table.scss +3 -3
- package/src/components/tabs/README.md +32 -0
- package/src/components/tabs/tabs.scss +41 -0
- package/src/components/text-area/README.md +17 -0
- package/src/components/text-area/text-area.scss +70 -0
- package/src/components/text-input/README.md +2 -0
- package/src/components/text-input/text-input.scss +3 -3
- package/src/components/top-task-link/README.md +5 -3
- package/src/components/top-task-link/top-task-link.scss +1 -1
- package/src/components/unordered-list/README.md +2 -0
- package/src/components/unordered-list/unordered-list.scss +6 -2
- package/src/components/visually-hidden/README.md +2 -0
- 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](
|
|
10
|
+
It is placed directly within the [Screen](/docs/components-layout-screen--docs).
|
|
9
11
|
|
|
10
|
-
A [Footer](
|
|
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](
|
|
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
|
|
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:
|
|
29
|
+
row-gap: var(--amsterdam-grid-row-gap-sm);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.amsterdam-grid--gap-vertical--large {
|
|
32
|
-
row-gap:
|
|
33
|
+
row-gap: var(--amsterdam-grid-row-gap-lg);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.amsterdam-grid--padding-bottom--small {
|
|
36
|
-
padding-block-end:
|
|
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-
|
|
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:
|
|
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:
|
|
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-
|
|
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:
|
|
57
|
+
padding-block-start: var(--amsterdam-grid-padding-block-lg);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
.amsterdam-grid--padding-vertical--small {
|
|
60
|
-
padding-block:
|
|
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-
|
|
65
|
+
padding-block: var(--amsterdam-grid-padding-block-md);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.amsterdam-grid--padding-vertical--large {
|
|
68
|
-
padding-block:
|
|
69
|
+
padding-block: var(--amsterdam-grid-padding-block-lg);
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.amsterdam-grid__cell--span-all {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
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:
|
|
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
|
# 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-
|
|
31
|
+
[Refer to the typography documentation for more information](/docs/docs-design-guidelines-typography--docs).
|
|
@@ -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](
|
|
16
|
+
The Icon Button follows [the same requirements and guidelines as a regular button](/docs/components-buttons-button--docs).
|
|
@@ -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](
|
|
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
|
|
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’
|
|
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
|
|
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 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](
|
|
18
|
+
For additional guidelines, refer to the [Link](/docs/components-navigation-link--docs) component.
|
|
@@ -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
|
|
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,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
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,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/** Apply border box sizing, reset
|
|
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
|
# 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](
|
|
19
|
+
For this component, the same WCAG requirements apply as for [the heading component](/docs/components-text-heading--docs).
|
|
@@ -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](
|
|
20
|
+
PageMenu is an interactive element, and the [general requirements and guidelines for interactive elements](/docs/docs-design-guidelines-interactive-elements--docs) apply.
|
|
@@ -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](
|
|
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
|
|
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:
|
|
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);
|
|
@@ -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.
|