@amsterdam/design-system-css 3.2.0 → 3.3.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 (83) hide show
  1. package/CHANGELOG.md +24 -0
  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/avatar/avatar.css +1 -1
  7. package/dist/avatar/avatar.css.map +1 -1
  8. package/dist/badge/badge.css +1 -1
  9. package/dist/badge/badge.css.map +1 -1
  10. package/dist/breakout/breakout.css +1 -1
  11. package/dist/breakout/breakout.css.map +1 -1
  12. package/dist/button/button.css +1 -1
  13. package/dist/button/button.css.map +1 -1
  14. package/dist/call-to-action-link/call-to-action-link.css +1 -1
  15. package/dist/call-to-action-link/call-to-action-link.css.map +1 -1
  16. package/dist/checkbox/checkbox.css +1 -1
  17. package/dist/checkbox/checkbox.css.map +1 -1
  18. package/dist/description-list/description-list.css +1 -1
  19. package/dist/description-list/description-list.css.map +1 -1
  20. package/dist/dialog/dialog.css +1 -1
  21. package/dist/dialog/dialog.css.map +1 -1
  22. package/dist/field-set/field-set.css.map +1 -1
  23. package/dist/grid/grid.css +1 -1
  24. package/dist/grid/grid.css.map +1 -1
  25. package/dist/heading/heading.css.map +1 -1
  26. package/dist/image-slider/image-slider.css +1 -1
  27. package/dist/image-slider/image-slider.css.map +1 -1
  28. package/dist/index.css +1 -1
  29. package/dist/index.css.map +1 -1
  30. package/dist/label/label.css.map +1 -1
  31. package/dist/menu/menu.css +1 -1
  32. package/dist/menu/menu.css.map +1 -1
  33. package/dist/page-footer/page-footer.css +1 -1
  34. package/dist/page-footer/page-footer.css.map +1 -1
  35. package/dist/page-header/page-header.css +1 -1
  36. package/dist/page-header/page-header.css.map +1 -1
  37. package/dist/page-heading/page-heading.deprecated.css.map +1 -1
  38. package/dist/pagination/pagination.css +1 -1
  39. package/dist/pagination/pagination.css.map +1 -1
  40. package/dist/paragraph/paragraph.css.map +1 -1
  41. package/dist/progress-list/progress-list.css +1 -1
  42. package/dist/progress-list/progress-list.css.map +1 -1
  43. package/dist/radio/radio.css +1 -1
  44. package/dist/radio/radio.css.map +1 -1
  45. package/dist/search-field/search-field.css +1 -1
  46. package/dist/search-field/search-field.css.map +1 -1
  47. package/dist/spotlight/spotlight.css +1 -1
  48. package/dist/spotlight/spotlight.css.map +1 -1
  49. package/dist/switch/switch.css +1 -1
  50. package/dist/switch/switch.css.map +1 -1
  51. package/package.json +3 -3
  52. package/src/common/hide-input.scss +1 -0
  53. package/src/common/print-exact.scss +16 -0
  54. package/src/components/accordion/accordion.scss +1 -1
  55. package/src/components/alert/alert.scss +4 -0
  56. package/src/components/aspect-ratio/README.md +8 -10
  57. package/src/components/avatar/avatar.scss +4 -0
  58. package/src/components/badge/badge.scss +2 -0
  59. package/src/components/breadcrumb/README.md +6 -7
  60. package/src/components/breakout/breakout.scss +6 -6
  61. package/src/components/button/button.scss +2 -0
  62. package/src/components/call-to-action-link/call-to-action-link.scss +2 -0
  63. package/src/components/description-list/description-list.scss +52 -24
  64. package/src/components/dialog/dialog.scss +4 -4
  65. package/src/components/field-set/field-set.scss +1 -5
  66. package/src/components/gap/README.md +2 -3
  67. package/src/components/grid/_mixins.scss +6 -6
  68. package/src/components/grid/grid.scss +2 -2
  69. package/src/components/heading/heading.scss +1 -5
  70. package/src/components/image-slider/image-slider.scss +1 -1
  71. package/src/components/label/label.scss +1 -5
  72. package/src/components/logo/README.md +2 -1
  73. package/src/components/margin/README.md +2 -1
  74. package/src/components/menu/menu.scss +5 -5
  75. package/src/components/page-footer/page-footer.scss +5 -2
  76. package/src/components/page-header/README.md +8 -24
  77. package/src/components/page-header/page-header.scss +11 -13
  78. package/src/components/page-heading/page-heading.deprecated.scss +2 -1
  79. package/src/components/pagination/pagination.scss +4 -0
  80. package/src/components/paragraph/paragraph.scss +1 -5
  81. package/src/components/progress-list/progress-list.scss +76 -7
  82. package/src/components/search-field/search-field.scss +2 -0
  83. package/src/components/spotlight/spotlight.scss +4 -0
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  @use "../../common/breakpoint" as *;
7
+ @use "../../common/print-exact" as *;
7
8
  @use "../../common/resets" as *;
8
9
 
9
10
  @mixin indicator {
@@ -36,7 +37,7 @@
36
37
  display: flex;
37
38
  gap: var(--ams-progress-list-step-gap);
38
39
 
39
- @media screen and (min-width: $ams-breakpoint-medium) {
40
+ @media (min-width: $ams-breakpoint-medium) {
40
41
  gap: var(--ams-progress-list-step-medium-gap);
41
42
  }
42
43
  }
@@ -80,6 +81,7 @@
80
81
  var(--ams-progress-list-step-marker-shape-outline-style) var(--ams-progress-list-step-marker-shape-outline-color);
81
82
 
82
83
  @include marker-shape;
84
+ @include print-exact;
83
85
 
84
86
  .ams-progress-list__step--completed & {
85
87
  background-color: var(--ams-progress-list-step-completed-marker-shape-background-color);
@@ -127,16 +129,25 @@
127
129
  .ams-progress-list > :last-child:not(.ams-progress-list__step--has-substeps) & {
128
130
  display: none;
129
131
  }
132
+
133
+ /* Hide connector for last step when collapsed. */
134
+ .ams-progress-list > :last-child.ams-progress-list__step--collapsed & {
135
+ display: none;
136
+ }
130
137
  }
131
138
 
132
139
  /* Content */
133
140
 
134
141
  .ams-progress-list__content {
135
142
  flex: auto;
136
- min-inline-size: 0; /* Ensure content can shrink to fit container */
137
-
138
- /* Add white space below all but the last step and steps with substeps. */
139
- .ams-progress-list__step:not(:last-child, .ams-progress-list__step--has-substeps) & {
143
+ min-inline-size: 0;
144
+
145
+ /* Add space below content, unless it is the last child, or if it has substeps and it is not collapsed. */
146
+ .ams-progress-list__step:not(
147
+ :last-child,
148
+ .ams-progress-list__step--has-substeps:not(.ams-progress-list__step--collapsed)
149
+ )
150
+ & {
140
151
  margin-block-end: var(--ams-progress-list-step-content-margin-block-end);
141
152
  }
142
153
  }
@@ -145,9 +156,66 @@
145
156
 
146
157
  .ams-progress-list__heading {
147
158
  margin-block-end: var(--ams-progress-list-step-heading-margin-block-end);
159
+
160
+ .ams-progress-list__step--collapsed & {
161
+ margin-block-end: 0;
162
+ }
163
+ }
164
+
165
+ /* Button */
166
+
167
+ .ams-progress-list__button {
168
+ @include reset-button;
169
+
170
+ background-color: transparent;
171
+ color: var(--ams-progress-list-button-color);
172
+ cursor: var(--ams-progress-list-button-cursor);
173
+ display: flex;
174
+ font-family: inherit;
175
+ font-size: inherit;
176
+ font-weight: inherit;
177
+ gap: var(--ams-progress-list-button-gap);
178
+ inline-size: 100%;
179
+ line-height: inherit;
180
+ outline-offset: var(--ams-progress-list-button-outline-offset);
181
+ padding-block: var(--ams-progress-list-button-padding-block);
182
+ padding-inline: var(--ams-progress-list-button-padding-inline);
183
+ text-align: start;
184
+
185
+ &:hover {
186
+ color: var(--ams-progress-list-button-hover-color);
187
+ }
188
+ }
189
+
190
+ /* Icon */
191
+
192
+ .ams-progress-list__icon svg {
193
+ rotate: 0deg;
194
+ transition: none;
195
+
196
+ [aria-expanded="true"] & {
197
+ rotate: -180deg;
198
+ }
199
+
200
+ @media (prefers-reduced-motion: no-preference) {
201
+ transition: rotate var(--ams-progress-list-icon-transition-duration)
202
+ var(--ams-progress-list-icon-transition-timing-function);
203
+ }
204
+ }
205
+
206
+ /* Panel */
207
+
208
+ .ams-progress-list__panel {
209
+ .ams-progress-list__step--collapsed & {
210
+ display: none;
211
+
212
+ @media print {
213
+ display: block;
214
+ }
215
+ }
148
216
  }
149
217
 
150
- /* Substeps is its own block in BEM and has the same elements as above */
218
+ /* Substeps is its own block in BEM and has the same elements as above */
151
219
 
152
220
  .ams-progress-list-substeps {
153
221
  @include reset-ol;
@@ -170,7 +238,7 @@
170
238
 
171
239
  @include indicator;
172
240
 
173
- @media screen and (min-width: $ams-breakpoint-medium) {
241
+ @media (min-width: $ams-breakpoint-medium) {
174
242
  margin-inline-end: var(--ams-progress-list-substeps-step-indicator-medium-margin-inline-end);
175
243
  margin-inline-start: calc(
176
244
  -1 * var(--ams-progress-list-step-medium-gap) - var(--ams-progress-list-step-marker-shape-block-size)
@@ -199,6 +267,7 @@
199
267
  var(--ams-progress-list-substeps-step-marker-shape-outline-color);
200
268
 
201
269
  @include marker-shape;
270
+ @include print-exact;
202
271
 
203
272
  .ams-progress-list-substeps__step--completed & {
204
273
  background-color: var(--ams-progress-list-substeps-step-completed-marker-shape-background-color);
@@ -3,6 +3,7 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @use "../../common/print-exact" as *;
6
7
  @use "../../common/resets" as *;
7
8
  @use "../../common/text-rendering" as *;
8
9
 
@@ -30,6 +31,7 @@
30
31
  padding-inline: var(--ams-search-field-input-padding-inline);
31
32
  touch-action: manipulation;
32
33
 
34
+ @include print-exact;
33
35
  @include text-rendering;
34
36
 
35
37
  &:focus {
@@ -3,8 +3,12 @@
3
3
  * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @use "../../common/print-exact" as *;
7
+
6
8
  .ams-spotlight {
7
9
  background-color: var(--ams-spotlight-background-color);
10
+
11
+ @include print-exact;
8
12
  }
9
13
 
10
14
  .ams-spotlight--azure {