@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.
Files changed (74) hide show
  1. package/AGENTS.md +46 -0
  2. package/CHANGELOG.md +47 -2
  3. package/README.md +10 -6
  4. package/dist/accordion/accordion.css.map +1 -1
  5. package/dist/body/body.css +1 -0
  6. package/dist/body/body.css.map +1 -0
  7. package/dist/breakout/breakout.css +1 -1
  8. package/dist/breakout/breakout.css.map +1 -1
  9. package/dist/description-list/description-list.css +1 -1
  10. package/dist/description-list/description-list.css.map +1 -1
  11. package/dist/dialog/dialog.css +1 -1
  12. package/dist/dialog/dialog.css.map +1 -1
  13. package/dist/field-set/field-set.css +1 -1
  14. package/dist/field-set/field-set.css.map +1 -1
  15. package/dist/grid/grid.css +1 -1
  16. package/dist/grid/grid.css.map +1 -1
  17. package/dist/heading/heading.css +1 -1
  18. package/dist/heading/heading.css.map +1 -1
  19. package/dist/icon/icon.css +1 -1
  20. package/dist/icon/icon.css.map +1 -1
  21. package/dist/index.css +1 -1
  22. package/dist/index.css.map +1 -1
  23. package/dist/menu/menu.css +1 -1
  24. package/dist/menu/menu.css.map +1 -1
  25. package/dist/page-footer/page-footer.css +1 -1
  26. package/dist/page-footer/page-footer.css.map +1 -1
  27. package/dist/page-header/page-header.css +1 -1
  28. package/dist/page-header/page-header.css.map +1 -1
  29. package/dist/progress-list/progress-list.css +1 -1
  30. package/dist/progress-list/progress-list.css.map +1 -1
  31. package/dist/prose/prose.css +1 -0
  32. package/dist/prose/prose.css.map +1 -0
  33. package/dist/tab-navigation/tab-navigation.css +1 -0
  34. package/dist/tab-navigation/tab-navigation.css.map +1 -0
  35. package/dist/table/table.css +1 -1
  36. package/dist/table/table.css.map +1 -1
  37. package/package.json +4 -4
  38. package/src/components/accordion/accordion.scss +0 -4
  39. package/src/components/body/README.md +15 -0
  40. package/src/components/{document/document.scss → body/body.scss} +2 -1
  41. package/src/components/breakout/breakout.scss +14 -2
  42. package/src/components/description-list/description-list.scss +20 -4
  43. package/src/components/dialog/dialog.scss +28 -7
  44. package/src/components/field-set/field-set.scss +1 -0
  45. package/src/components/gap/README.md +2 -0
  46. package/src/components/grid/README.md +4 -0
  47. package/src/components/grid/_mixins.scss +43 -5
  48. package/src/components/grid/grid.scss +47 -1
  49. package/src/components/heading/heading.scss +0 -5
  50. package/src/components/icon/icon.scss +0 -7
  51. package/src/components/index.scss +3 -3
  52. package/src/components/margin/README.md +1 -0
  53. package/src/components/menu/menu.scss +27 -24
  54. package/src/components/page-footer/page-footer.scss +11 -2
  55. package/src/components/page-header/page-header.scss +26 -10
  56. package/src/components/progress-list/README.md +2 -1
  57. package/src/components/progress-list/progress-list.scss +14 -3
  58. package/src/components/prose/README.md +15 -0
  59. package/src/components/prose/prose.scss +104 -0
  60. package/src/components/standalone-link/standalone-link.scss +0 -5
  61. package/src/components/tab-navigation/README.md +13 -0
  62. package/src/components/tab-navigation/tab-navigation.scss +101 -0
  63. package/src/components/table/README.md +4 -5
  64. package/src/components/table/table.scss +15 -0
  65. package/src/components/tabs/README.md +9 -27
  66. package/dist/document/document.css +0 -1
  67. package/dist/document/document.css.map +0 -1
  68. package/dist/icon/icon.deprecated.css +0 -1
  69. package/dist/icon/icon.deprecated.css.map +0 -1
  70. package/dist/page-heading/page-heading.deprecated.css +0 -1
  71. package/dist/page-heading/page-heading.deprecated.css.map +0 -1
  72. package/src/components/icon/icon.deprecated.scss +0 -12
  73. package/src/components/page-heading/README.md +0 -3
  74. 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
- Tabs are used to bundle related content in a compact overview within a page. Each tab has a short name, and these names indicate the relationship between the information displayed in each tab.
5
+ Discloses related pieces of content in a secondary area on the page.
6
6
 
7
7
  ## Guidelines
8
8
 
9
- - The content of each tab is viewable independently, not in the context of one another.
10
- - The content within each tab should have a similar structure.
11
- - Use when there is limited visual space and content needs to be divided into sections.
12
- - Each tab consists of a button and a panel.
13
- The button has an `aria-controls` attribute that matches the `id` of the associated panel.
14
-
15
- You can navigate tabs with your keyboard:
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,3 +0,0 @@
1
- <!-- @license CC0-1.0 -->
2
-
3
- # Page Heading
@@ -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
- }