@amsterdam/design-system-css 3.3.0 → 4.1.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.
- package/AGENTS.md +46 -0
- package/CHANGELOG.md +47 -2
- package/README.md +10 -6
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/body/body.css +1 -0
- package/dist/body/body.css.map +1 -0
- package/dist/breakout/breakout.css +1 -1
- package/dist/breakout/breakout.css.map +1 -1
- package/dist/description-list/description-list.css +1 -1
- package/dist/description-list/description-list.css.map +1 -1
- package/dist/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/field-set/field-set.css +1 -1
- package/dist/field-set/field-set.css.map +1 -1
- package/dist/grid/grid.css +1 -1
- package/dist/grid/grid.css.map +1 -1
- package/dist/heading/heading.css +1 -1
- package/dist/heading/heading.css.map +1 -1
- package/dist/icon/icon.css +1 -1
- package/dist/icon/icon.css.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/menu/menu.css +1 -1
- package/dist/menu/menu.css.map +1 -1
- package/dist/page-footer/page-footer.css +1 -1
- package/dist/page-footer/page-footer.css.map +1 -1
- package/dist/page-header/page-header.css +1 -1
- package/dist/page-header/page-header.css.map +1 -1
- package/dist/progress-list/progress-list.css +1 -1
- package/dist/progress-list/progress-list.css.map +1 -1
- package/dist/prose/prose.css +1 -0
- package/dist/prose/prose.css.map +1 -0
- package/dist/tab-navigation/tab-navigation.css +1 -0
- package/dist/tab-navigation/tab-navigation.css.map +1 -0
- package/dist/table/table.css +1 -1
- package/dist/table/table.css.map +1 -1
- package/package.json +4 -4
- package/src/components/accordion/accordion.scss +0 -4
- package/src/components/body/README.md +15 -0
- package/src/components/{document/document.scss → body/body.scss} +2 -1
- package/src/components/breakout/breakout.scss +14 -2
- package/src/components/description-list/description-list.scss +20 -4
- package/src/components/dialog/dialog.scss +28 -7
- package/src/components/field-set/field-set.scss +1 -0
- package/src/components/gap/README.md +2 -0
- package/src/components/grid/README.md +4 -0
- package/src/components/grid/_mixins.scss +43 -5
- package/src/components/grid/grid.scss +47 -1
- package/src/components/heading/heading.scss +0 -5
- package/src/components/icon/icon.scss +0 -7
- package/src/components/index.scss +3 -3
- package/src/components/margin/README.md +1 -0
- package/src/components/menu/menu.scss +27 -24
- package/src/components/page-footer/page-footer.scss +11 -2
- package/src/components/page-header/page-header.scss +26 -10
- package/src/components/progress-list/README.md +2 -1
- package/src/components/progress-list/progress-list.scss +14 -3
- package/src/components/prose/README.md +15 -0
- package/src/components/prose/prose.scss +104 -0
- package/src/components/standalone-link/standalone-link.scss +0 -5
- package/src/components/tab-navigation/README.md +13 -0
- package/src/components/tab-navigation/tab-navigation.scss +101 -0
- package/src/components/table/README.md +4 -5
- package/src/components/table/table.scss +15 -0
- package/src/components/tabs/README.md +9 -27
- package/dist/document/document.css +0 -1
- package/dist/document/document.css.map +0 -1
- package/dist/icon/icon.deprecated.css +0 -1
- package/dist/icon/icon.deprecated.css.map +0 -1
- package/dist/page-heading/page-heading.deprecated.css +0 -1
- package/dist/page-heading/page-heading.deprecated.css.map +0 -1
- package/src/components/icon/icon.deprecated.scss +0 -12
- package/src/components/page-heading/README.md +0 -3
- package/src/components/page-heading/page-heading.deprecated.scss +0 -33
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
.ams-table__caption {
|
|
21
21
|
font-weight: var(--ams-table-caption-font-weight);
|
|
22
|
+
margin-block-end: var(--ams-table-caption-margin-block-end);
|
|
22
23
|
text-align: start;
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -33,4 +34,18 @@
|
|
|
33
34
|
|
|
34
35
|
.ams-table__header-cell {
|
|
35
36
|
font-weight: var(--ams-table-header-cell-font-weight);
|
|
37
|
+
|
|
38
|
+
.ams-table__header & {
|
|
39
|
+
vertical-align: bottom;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ams-table__cell--align-center,
|
|
44
|
+
.ams-table__header-cell--align-center {
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ams-table__cell--align-end,
|
|
49
|
+
.ams-table__header-cell--align-end {
|
|
50
|
+
text-align: end;
|
|
36
51
|
}
|
|
@@ -2,33 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# Tabs
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Discloses related pieces of content in a secondary area on the page.
|
|
6
6
|
|
|
7
7
|
## Guidelines
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
| key | element |
|
|
18
|
-
| :------------- | :--------------------------------------------- |
|
|
19
|
-
| Enter or Space | Open or close the tab that has the focus |
|
|
20
|
-
| Tab | Go to the next element that can have focus |
|
|
21
|
-
| Shift + Tab | Go to the next element that can have focus |
|
|
22
|
-
| Left arrow | If the tabs have focus: go to the previous tab |
|
|
23
|
-
| Right arrow | If the tabs have focus: go to the next tab |
|
|
24
|
-
| Home | If the tabs have focus: go to the first tab |
|
|
25
|
-
| End | If the tabs have focus, go to the last tab |
|
|
26
|
-
|
|
27
|
-
### Caution
|
|
28
|
-
|
|
29
|
-
Do not use tabs if the content in each tab functions just as well on separate pages.
|
|
30
|
-
|
|
31
|
-
## References
|
|
32
|
-
|
|
33
|
-
- [W3C - Tabs Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/)
|
|
34
|
-
- [MDN - Tab Aria Roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role)
|
|
9
|
+
- Use Tabs to let related content fragments share a space on the current page.
|
|
10
|
+
Each tab has a button that shows its content in a panel.
|
|
11
|
+
- Do not make it toggle between large amounts of primary content.
|
|
12
|
+
That would come down to navigating between pages.
|
|
13
|
+
In this context, use [Tab Navigation](/docs/components-navigation-tab-navigation--docs) to offer the user the benefits of links.
|
|
14
|
+
- The content of each tab must be usable independent of the others.
|
|
15
|
+
- Create a panel for each button.
|
|
16
|
+
Add an `aria-controls` attribute to each button and match its value to the `id` of the associated panel.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ams-body{margin-block:0;margin-inline:0}/*# sourceMappingURL=document.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/document/document.scss","../../src/common/resets.scss"],"names":[],"mappings":"AAQA,UCFE,eACA","file":"document.css"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ams-icon--heading-0{--ams-line-height: var(--ams-icon-heading-0-line-height);font-size:var(--ams-icon-heading-0-font-size);line-height:var(--ams-icon-heading-0-line-height)}/*# sourceMappingURL=icon.deprecated.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/icon/icon.deprecated.scss"],"names":[],"mappings":"AAMA,qBACE,yDAEA,8CACA","file":"icon.deprecated.css"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ams-page-heading{margin-block:0;box-sizing:border-box;break-after:avoid;break-inside:avoid;color:var(--ams-page-heading-color);font-family:var(--ams-page-heading-font-family);font-size:var(--ams-page-heading-font-size);font-weight:var(--ams-page-heading-font-weight);line-height:var(--ams-page-heading-line-height);text-wrap:var(--ams-page-heading-text-wrap);hyphenate-limit-chars:var(--ams-typography-hyphenate-limit-chars);hyphens:auto;overflow-wrap:break-word;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.ams-page-heading--inverse{color:var(--ams-page-heading-inverse-color)}/*# sourceMappingURL=page-heading.deprecated.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/page-heading/page-heading.deprecated.scss","../../src/common/resets.scss","../../src/common/hyphenation.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAUA,kBC0CE,eDvCA,sBAEA,kBACA,mBACA,oCACA,gDACA,4CACA,gDACA,gDAGA,4CEhBA,kEAEA,aACA,yBCDA,kCACA,2BACA,8BAIA,sBHcF,2BACE","file":"page-heading.deprecated.css"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2+
|
|
3
|
-
* Copyright Gemeente Amsterdam
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Deprecated. Use ‘heading 1’ instead.
|
|
7
|
-
.ams-icon--heading-0 {
|
|
8
|
-
--ams-line-height: var(--ams-icon-heading-0-line-height);
|
|
9
|
-
|
|
10
|
-
font-size: var(--ams-icon-heading-0-font-size);
|
|
11
|
-
line-height: var(--ams-icon-heading-0-line-height);
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2+
|
|
3
|
-
* Copyright Gemeente Amsterdam
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use "../../common/hyphenation" as *;
|
|
7
|
-
@use "../../common/resets" as *;
|
|
8
|
-
@use "../../common/text-rendering" as *;
|
|
9
|
-
|
|
10
|
-
/* @deprecated We no longer use this size of headings. Use `.ams-heading.ams-heading--1` instead. */
|
|
11
|
-
.ams-page-heading {
|
|
12
|
-
@include reset-hx;
|
|
13
|
-
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
/* stylelint-disable-next-line plugin/use-baseline */
|
|
16
|
-
break-after: avoid;
|
|
17
|
-
break-inside: avoid;
|
|
18
|
-
color: var(--ams-page-heading-color);
|
|
19
|
-
font-family: var(--ams-page-heading-font-family);
|
|
20
|
-
font-size: var(--ams-page-heading-font-size);
|
|
21
|
-
font-weight: var(--ams-page-heading-font-weight);
|
|
22
|
-
line-height: var(--ams-page-heading-line-height);
|
|
23
|
-
|
|
24
|
-
/* stylelint-disable-next-line plugin/use-baseline -- Unbalanced line lengths in non-supporting browsers are acceptable */
|
|
25
|
-
text-wrap: var(--ams-page-heading-text-wrap);
|
|
26
|
-
|
|
27
|
-
@include hyphenation;
|
|
28
|
-
@include text-rendering;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ams-page-heading--inverse {
|
|
32
|
-
color: var(--ams-page-heading-inverse-color);
|
|
33
|
-
}
|