dso-toolkit 63.0.0 → 65.0.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 (56) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/dso.css +505 -225
  3. package/dist/dso.css.map +1 -1
  4. package/dist/dso.min.css +1 -1
  5. package/dist/dso.min.css.map +1 -1
  6. package/dist/index.js +8 -5
  7. package/package.json +4 -4
  8. package/src/components/accordion/accordion-theme-compact.scss +8 -2
  9. package/src/components/accordion/accordion.scss +1 -1
  10. package/src/components/action-list/action-list.scss +2 -2
  11. package/src/components/alert/alert.scss +5 -1
  12. package/src/components/attachments-counter/attachments-counter.scss +5 -2
  13. package/src/components/breadcrumbs/breadcrumbs.mixins.scss +7 -5
  14. package/src/components/button/button.mixins.scss +20 -13
  15. package/src/components/context/context.scss +10 -7
  16. package/src/components/definition-list/definition-list.scss +39 -10
  17. package/src/components/delete/delete.mixins.scss +3 -1
  18. package/src/components/description/description.scss +4 -2
  19. package/src/components/document-header/document-header.scss +15 -7
  20. package/src/components/dropdown-menu/dropdown-menu.mixins.scss +12 -9
  21. package/src/components/dropdown-menu/dropdown-menu.scss +26 -14
  22. package/src/components/footer/footer.scss +8 -5
  23. package/src/components/form/form-buttons/form-buttons.scss +4 -1
  24. package/src/components/form/form-group-collection.scss +27 -4
  25. package/src/components/form/form-group.scss +9 -6
  26. package/src/components/form/form-groups/select/form-group-select.scss +9 -6
  27. package/src/components/form-control/form-control.mixins.scss +17 -15
  28. package/src/components/grid/grid.scss +10 -4
  29. package/src/components/heading/_index.scss +1 -0
  30. package/src/components/{headings/headings.scss → heading/heading.scss} +9 -9
  31. package/src/components/highlight-box/highlight-box.scss +6 -3
  32. package/src/components/info/info.scss +5 -2
  33. package/src/components/info-button/info-button.mixins.scss +7 -5
  34. package/src/components/insert/insert.mixins.scss +3 -1
  35. package/src/components/label/label.mixins.scss +6 -2
  36. package/src/components/link-list/link-list.mixins.scss +4 -1
  37. package/src/components/link-list/link-list.scss +6 -3
  38. package/src/components/list-button/list-button.mixins.scss +43 -27
  39. package/src/components/mark/mark.scss +4 -3
  40. package/src/components/modal/modal.mixins.scss +21 -12
  41. package/src/components/modal/modal.scss +6 -3
  42. package/src/components/navbar/navbar.mixins.scss +15 -9
  43. package/src/components/pagination/pagination.mixins.scss +53 -51
  44. package/src/components/pagination/pagination.scss +6 -1
  45. package/src/components/paragraph/paragraph.scss +6 -0
  46. package/src/components/paragraph/readme.md +1 -0
  47. package/src/components/search-bar/search-bar.scss +31 -23
  48. package/src/components/shopping-cart/shopping-cart.scss +26 -16
  49. package/src/components/tabs/tabs.scss +19 -13
  50. package/src/components/viewer-grid/viewer-grid.scss +4 -1
  51. package/src/di.scss +11 -7
  52. package/src/dso.scss +1 -1
  53. package/src/global/mixins/set-colors.mixin.scss +32 -31
  54. package/src/global/spacing.scss +4 -0
  55. package/src/components/headings/_index.scss +0 -1
  56. /package/src/components/{headings/headings.mixins.scss → heading/heading.mixins.scss} +0 -0
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ export * from "./components/footnotes";
33
33
  export { storiesOfForm } from "./components/form/form.stories-of.js";
34
34
  export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
35
35
  export * from "./components/header";
36
+ export * from "./components/heading";
36
37
  export * from "./components/helpcenter-panel";
37
38
  export * from "./components/highlight-box";
38
39
  export * from "./components/icon";
@@ -50,14 +51,16 @@ export * from "./components/list";
50
51
  export * from "./components/list-button";
51
52
  export { storiesOfLogo } from "./components/logo/logo.stories-of.js";
52
53
  export * from "./components/mark-bar";
53
- export { storiesOfModal } from "./components/modal/modal.stories-of.js";
54
+ export * from "./components/modal";
54
55
  export { storiesOfMapControls, } from "./components/map-controls/map-controls.stories-of.js";
55
56
  export { storiesOfNavbar } from "./components/navbar/navbar.stories-of.js";
56
- export { storiesOfOzonContent } from "./components/ozon-content/ozon-content.stories-of.js";
57
- export { storiesOfPagination } from "./components/pagination/pagination.stories-of.js";
57
+ export * from "./components/ozon-content";
58
+ export * from "./components/pagination";
58
59
  export * from "./components/panel";
59
- export { storiesOfProgressBar } from "./components/progress-bar/progress-bar.stories-of.js";
60
- export { storiesOfProgressIndicator, } from "./components/progress-indicator/progress-indicator.stories-of.js";
60
+ export * from "./components/paragraph";
61
+ export * from "./components/progress-bar";
62
+ export * from "./components/progress-indicator";
63
+ export * from "./components/project-item";
61
64
  export * from "./components/input-range";
62
65
  export * from "./components/renvooi";
63
66
  export { storiesOfResponsiveElement, } from "./components/responsive-element/responsive-element.stories-of.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dso-toolkit",
3
3
  "description": "DSO Toolkit",
4
4
  "license": "SEE LICENSE IN DISCLAIMER.txt",
5
- "version": "63.0.0",
5
+ "version": "65.0.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -43,7 +43,7 @@
43
43
  "@types/through2": "^2.0.41",
44
44
  "concurrently": "^8.2.2",
45
45
  "css": "^3.0.0",
46
- "cssnano": "^7.0.4",
46
+ "cssnano": "^7.0.5",
47
47
  "del": "^7.1.0",
48
48
  "escape-string-regexp": "^5.0.0",
49
49
  "gulp": "^5.0.0",
@@ -56,9 +56,9 @@
56
56
  "gulp-svgstore": "^9.0.0",
57
57
  "gulp-typescript": "^6.0.0-alpha.1",
58
58
  "list-stream": "^2.1.0",
59
- "markdown-to-jsx": "^7.4.7",
59
+ "markdown-to-jsx": "^7.5.0",
60
60
  "plugin-error": "^2.0.1",
61
- "postcss": "^8.4.40",
61
+ "postcss": "^8.4.44",
62
62
  "prettier": "^3.3.3",
63
63
  "react": "^18.3.1",
64
64
  "react-dom": "^18.3.1",
@@ -18,7 +18,10 @@
18
18
  &::before {
19
19
  @include di.base("chevron-right-grasgroen");
20
20
 
21
- inset-inline-start: 0;
21
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
22
+ & {
23
+ inset-inline-start: 0;
24
+ }
22
25
  }
23
26
 
24
27
  &:hover,
@@ -112,7 +115,10 @@
112
115
  &::before {
113
116
  @include di.base("chevron-down-grasgroen");
114
117
 
115
- inset-inline-start: auto;
118
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
119
+ & {
120
+ inset-inline-start: auto;
121
+ }
116
122
  }
117
123
  }
118
124
  }
@@ -144,7 +144,7 @@
144
144
  }
145
145
  }
146
146
 
147
- > .dso-badge {
147
+ > .dso-label {
148
148
  margin-inline-start: auto;
149
149
  padding-inline-start: units.$u1;
150
150
  word-break: normal;
@@ -2,7 +2,7 @@
2
2
  @use "../../variables/units";
3
3
  @use "../../variables/media-query-breakpoints";
4
4
  @use "../../components/step-counter";
5
- @use "../headings";
5
+ @use "../heading";
6
6
 
7
7
  @use "action-list.variables" as action-list-variables;
8
8
  @use "components/action-list-item.variables" as action-list-item-variables;
@@ -43,7 +43,7 @@ dso-action-list {
43
43
  .dso-rich-content {
44
44
  h5,
45
45
  .h5 {
46
- @include headings.no-margin();
46
+ @include heading.no-margin();
47
47
  }
48
48
  }
49
49
  }
@@ -15,7 +15,11 @@
15
15
 
16
16
  &.dso-compact {
17
17
  @include alert.compact();
18
- min-block-size: alert.$inline-padding;
18
+
19
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
20
+ & {
21
+ min-block-size: alert.$inline-padding;
22
+ }
19
23
  }
20
24
 
21
25
  &.alert-success {
@@ -8,7 +8,10 @@
8
8
  &::after {
9
9
  @include di.base("paperclip-grijs");
10
10
 
11
- content: "";
12
- display: inline-block;
11
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
12
+ & {
13
+ content: "";
14
+ display: inline-block;
15
+ }
13
16
  }
14
17
  }
@@ -7,11 +7,13 @@
7
7
  @mixin root() {
8
8
  @include utilities.clearfix();
9
9
 
10
- list-style: none;
11
- margin-block-end: units.$u2;
12
- margin-block-start: units.$u2;
13
- padding-block: 0;
14
- padding-inline: units.$u1;
10
+ & {
11
+ list-style: none;
12
+ margin-block-end: units.$u2;
13
+ margin-block-start: units.$u2;
14
+ padding-block: 0;
15
+ padding-inline: units.$u1;
16
+ }
15
17
 
16
18
  > li {
17
19
  display: flex;
@@ -24,15 +24,20 @@
24
24
  @include base($modifiers);
25
25
  }
26
26
 
27
- @include _shared-variant($defaults-map);
27
+ & {
28
+ @include _shared-variant($defaults-map);
29
+ }
28
30
 
29
- border-width: 1px;
30
- border-style: solid;
31
- border-radius: button-variables.$border-radius;
32
- line-height: typography.$line-height-base;
33
- min-inline-size: button-variables.$min-inline-size;
34
- padding-block: button-variables.$block-padding;
35
- padding-inline: button-variables.$inline-padding;
31
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
32
+ & {
33
+ border-width: 1px;
34
+ border-style: solid;
35
+ border-radius: button-variables.$border-radius;
36
+ line-height: typography.$line-height-base;
37
+ min-inline-size: button-variables.$min-inline-size;
38
+ padding-block: button-variables.$block-padding;
39
+ padding-inline: button-variables.$inline-padding;
40
+ }
36
41
 
37
42
  &:hover {
38
43
  @include _shared-variant($defaults-map, $hover-map);
@@ -346,11 +351,13 @@
346
351
  @include base($modifiers);
347
352
  }
348
353
 
349
- border: 0;
350
- color: button-variables.$tertiary-color;
351
- line-height: 1;
352
- padding: 0;
353
- background-color: transparent;
354
+ & {
355
+ border: 0;
356
+ color: button-variables.$tertiary-color;
357
+ line-height: 1;
358
+ padding: 0;
359
+ background-color: transparent;
360
+ }
354
361
 
355
362
  &[disabled] {
356
363
  color: colors.$grasgroen-40;
@@ -48,13 +48,16 @@
48
48
  @include form-control.root();
49
49
  @include di.variant("caret-down");
50
50
 
51
- -moz-appearance: none;
52
- -webkit-appearance: none;
53
- background-position: calc(100% - #{units.$u1});
54
- background-repeat: no-repeat;
55
- background-size: icon.$size icon.$size;
56
- padding-inline-end: units.$u4;
57
- inline-size: auto;
51
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
52
+ & {
53
+ -moz-appearance: none;
54
+ -webkit-appearance: none;
55
+ background-position: calc(100% - #{units.$u1});
56
+ background-repeat: no-repeat;
57
+ background-size: icon.$size icon.$size;
58
+ padding-inline-end: units.$u4;
59
+ inline-size: auto;
60
+ }
58
61
  }
59
62
  }
60
63
  }
@@ -8,14 +8,15 @@
8
8
  @use "definition-list.variables" as css-definition-list-variables;
9
9
 
10
10
  dl {
11
- margin-block-end: css-definition-list-variables.$block-space * 2;
11
+ margin-block-end: var(--_dt-dl-margin-block-end, css-definition-list-variables.$block-space * 2);
12
12
  margin-block-start: 0;
13
+ font-size: var(--_dt-dl-font-size, inherit);
13
14
 
14
15
  + dl {
15
16
  &::before {
16
17
  border-block-end: 1px solid colors.$grijs-20;
17
18
  content: " ";
18
- display: block;
19
+ display: var(--_dt-dl-before-display, block);
19
20
  float: inline-start;
20
21
  block-size: css-definition-list-variables.$block-space;
21
22
  margin-block-end: css-definition-list-variables.$block-space * 3;
@@ -23,20 +24,48 @@ dl {
23
24
  }
24
25
  }
25
26
 
27
+ &.dso-grouped {
28
+ > .dso-group {
29
+ display: flex;
30
+ flex-wrap: nowrap;
31
+ column-gap: calc(units.$u2 / 2);
32
+ }
33
+
34
+ dt,
35
+ dd {
36
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list -- wrapping is done by child dt/dd elements */
37
+ white-space: nowrap;
38
+ }
39
+
40
+ dt {
41
+ &::after {
42
+ content: ":";
43
+ display: inline-block;
44
+ }
45
+ }
46
+ }
47
+
26
48
  dt,
27
49
  dd {
28
50
  line-height: typography.$line-height-base;
29
51
  }
30
52
 
31
53
  dt {
32
- font-weight: 700;
54
+ font-weight: var(--_dt-dl-dt-font-weight, 700);
33
55
  }
34
56
 
35
57
  dd {
36
58
  @include rich-content.children();
37
59
  @include utilities.clearfix();
38
60
 
39
- margin-inline-start: 0;
61
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
62
+ & {
63
+ margin-inline-start: 0;
64
+ }
65
+
66
+ &:last-of-type {
67
+ margin-inline-end: 0;
68
+ }
40
69
 
41
70
  p:last-child {
42
71
  margin-block-end: 0;
@@ -44,7 +73,7 @@ dl {
44
73
 
45
74
  @media screen and (min-width: css-definition-list-variables.$horizontal-breakpoint) {
46
75
  &:last-of-type {
47
- margin-block-end: css-definition-list-variables.$block-space;
76
+ margin-block-end: var(--_dt-dl-dd-last-margin-block-end, css-definition-list-variables.$block-space);
48
77
  }
49
78
  }
50
79
  }
@@ -101,7 +130,7 @@ dl {
101
130
  &:not(.dso-vertical):not(.dso-columns) {
102
131
  dd + dt,
103
132
  dd + dt + dd {
104
- margin-block-start: css-definition-list-variables.$block-space;
133
+ margin-block-start: var(--_dt-dl-dd-margin-block-start, css-definition-list-variables.$block-space);
105
134
  }
106
135
  }
107
136
  }
@@ -111,13 +140,13 @@ dl {
111
140
  dt {
112
141
  clear: inline-start;
113
142
  float: inline-start;
114
- inline-size: css-definition-list-variables.$term-inline-size;
143
+ inline-size: var(--_dt-dl-dt-inline-size, css-definition-list-variables.$term-inline-size);
115
144
  word-wrap: break-word;
116
145
  }
117
146
 
118
147
  dd {
119
- margin-inline-start: css-definition-list-variables.$term-inline-size;
120
- padding-inline-start: css-definition-list-variables.$gutter;
148
+ margin-inline-start: var(--_dt-dl-dd-margin-inline-start, css-definition-list-variables.$term-inline-size);
149
+ padding-inline-start: var(--_dt-dl-dd-padding-inline-start, css-definition-list-variables.$gutter);
121
150
  }
122
151
 
123
152
  &.dso-columns-1-3 {
@@ -209,7 +238,7 @@ dl {
209
238
  &:not(.dso-bordered) {
210
239
  @media screen and (max-width: #{css-definition-list-variables.$horizontal-breakpoint - 1}) {
211
240
  dd + dt {
212
- margin-block-start: css-definition-list-variables.$block-space;
241
+ margin-block-start: var(--_dt-dl-dd-margin-block-start, css-definition-list-variables.$block-space);
213
242
  }
214
243
  }
215
244
  }
@@ -4,5 +4,7 @@
4
4
  @mixin root() {
5
5
  @include set-colors.apply(colors.$rood-20);
6
6
 
7
- text-decoration: line-through;
7
+ & {
8
+ text-decoration: line-through;
9
+ }
8
10
  }
@@ -12,8 +12,10 @@ $content-selector: ".dso-description-content";
12
12
  &::before {
13
13
  @include di.base("times-zwart");
14
14
 
15
- content: "";
16
- display: block;
15
+ & {
16
+ content: "";
17
+ display: block;
18
+ }
17
19
  }
18
20
  }
19
21
  }
@@ -13,9 +13,12 @@
13
13
  .dso-document-header {
14
14
  @include set-colors.apply(colors.$grijs-5);
15
15
 
16
- padding: #{grid-variables.$grid-gutter-width * 0.5};
17
- margin-inline-start: grid-variables.$grid-gutter-width * -0.5;
18
- margin-inline-end: grid-variables.$grid-gutter-width * -0.5;
16
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
17
+ & {
18
+ padding: #{grid-variables.$grid-gutter-width * 0.5};
19
+ margin-inline-start: grid-variables.$grid-gutter-width * -0.5;
20
+ margin-inline-end: grid-variables.$grid-gutter-width * -0.5;
21
+ }
19
22
 
20
23
  #{typography.$headings} {
21
24
  button {
@@ -50,8 +53,10 @@
50
53
  &::after {
51
54
  @include di.base("chevron-up-bosgroen");
52
55
 
53
- content: "";
54
- display: inline-block;
56
+ & {
57
+ content: "";
58
+ display: inline-block;
59
+ }
55
60
  }
56
61
 
57
62
  span {
@@ -115,8 +120,11 @@
115
120
  .dso-document-header-toggle-status {
116
121
  @include button.tertiary();
117
122
 
118
- color: colors.$zwart;
119
- font-weight: normal;
123
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
124
+ & {
125
+ color: colors.$zwart;
126
+ font-weight: normal;
127
+ }
120
128
  }
121
129
 
122
130
  .dso-document-header-map-action {
@@ -80,15 +80,18 @@
80
80
  button {
81
81
  @include anchor.reverse();
82
82
 
83
- clear: both;
84
- color: dropdown-menu-variables.$link-color;
85
- display: block;
86
- font-weight: 400;
87
- line-height: 1.5;
88
- padding-block: 3px;
89
- padding-inline: dropdown-menu-variables.$inline-padding;
90
- text-decoration: none;
91
- white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- We don't want wrapping in Dropdown items
83
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
84
+ & {
85
+ clear: both;
86
+ color: dropdown-menu-variables.$link-color;
87
+ display: block;
88
+ font-weight: 400;
89
+ line-height: 1.5;
90
+ padding-block: 3px;
91
+ padding-inline: dropdown-menu-variables.$inline-padding;
92
+ text-decoration: none;
93
+ white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- We don't want wrapping in Dropdown items
94
+ }
92
95
 
93
96
  &:hover,
94
97
  &:focus {
@@ -28,9 +28,12 @@
28
28
  &::after {
29
29
  @include di.base("chevron-down");
30
30
 
31
- margin-inline-start: units.$u1 * 0.5;
32
- position: relative;
33
- inset-block-start: -2px;
31
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
32
+ & {
33
+ margin-inline-start: units.$u1 * 0.5;
34
+ position: relative;
35
+ inset-block-start: -2px;
36
+ }
34
37
  }
35
38
 
36
39
  &:hover {
@@ -76,7 +79,10 @@
76
79
  @include dropdown-menu.children();
77
80
  @include icons();
78
81
 
79
- position: relative;
82
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
83
+ & {
84
+ position: relative;
85
+ }
80
86
 
81
87
  &.dso-open {
82
88
  @include icons-open();
@@ -92,11 +98,14 @@
92
98
  &::before {
93
99
  @include di.base("check-wit", units.$u3);
94
100
 
95
- content: "";
96
- display: block;
97
- float: inline-start;
98
- margin-inline-start: units.$u4 * -1;
99
- margin-inline-end: units.$u1;
101
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
102
+ & {
103
+ content: "";
104
+ display: block;
105
+ float: inline-start;
106
+ margin-inline-start: units.$u4 * -1;
107
+ margin-inline-end: units.$u1;
108
+ }
100
109
  }
101
110
  }
102
111
  }
@@ -137,11 +146,14 @@ dso-dropdown-menu {
137
146
  &::before {
138
147
  @include di.base("check-wit", units.$u3);
139
148
 
140
- content: "";
141
- display: block;
142
- float: inline-start;
143
- margin-inline-start: units.$u4 * -1;
144
- margin-inline-end: units.$u1;
149
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
150
+ & {
151
+ content: "";
152
+ display: block;
153
+ float: inline-start;
154
+ margin-inline-start: units.$u4 * -1;
155
+ margin-inline-end: units.$u1;
156
+ }
145
157
  }
146
158
  }
147
159
  }
@@ -14,11 +14,14 @@ footer {
14
14
 
15
15
  @include set-colors.apply(colors.$grijs-5);
16
16
 
17
- border-block-start: 1px solid css-footer-variables.$border-color;
18
- display: block;
19
- margin-block-start: units.$u6;
20
- padding-block-end: units.$u6;
21
- padding-block-start: units.$u3;
17
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
18
+ & {
19
+ border-block-start: 1px solid css-footer-variables.$border-color;
20
+ display: block;
21
+ margin-block-start: units.$u6;
22
+ padding-block-end: units.$u6;
23
+ padding-block-start: units.$u3;
24
+ }
22
25
 
23
26
  .dso-link-list {
24
27
  @include link-list.exotic();
@@ -13,7 +13,10 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- margin-block-end: units.$block-spacing-medium;
16
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
17
+ & {
18
+ margin-block-end: units.$block-spacing-medium;
19
+ }
17
20
 
18
21
  &:last-child {
19
22
  margin-block-end: units.$block-spacing-xlarge;
@@ -1,7 +1,7 @@
1
1
  @use "sass:math";
2
2
 
3
3
  @use "../../variables/units";
4
- @use "../headings";
4
+ @use "../heading";
5
5
 
6
6
  @use "form.variables" as css-form-variables;
7
7
  @use "form.mixins" as css-form-mixins;
@@ -11,10 +11,33 @@
11
11
  margin-block-end: units.$u2;
12
12
 
13
13
  > legend {
14
- @include headings.h3();
14
+ & {
15
+ border-block-end: 0;
16
+ margin-block-end: css-form-variables.$fieldset-separator-unit;
17
+ }
18
+
19
+ &,
20
+ h1,
21
+ h2,
22
+ h3,
23
+ h4,
24
+ h5,
25
+ h6 {
26
+ @include heading.h3();
27
+ }
28
+
29
+ h1,
30
+ h2,
31
+ h3,
32
+ h4,
33
+ h5,
34
+ h6 {
35
+ margin-block: 0;
36
+ }
37
+ }
15
38
 
16
- border-block-end: 0;
17
- margin-block-end: css-form-variables.$fieldset-separator-unit;
39
+ &:has(+ .dso-form-group-collection) {
40
+ margin-block-end: 0;
18
41
  }
19
42
 
20
43
  + .dso-form-group-collection {
@@ -6,7 +6,7 @@
6
6
  @use "../../variables/typography";
7
7
  @use "../../variables/zindex";
8
8
  @use "../form-control";
9
- @use "../headings";
9
+ @use "../heading";
10
10
 
11
11
  @use "../../di";
12
12
 
@@ -49,7 +49,7 @@
49
49
  .dso-info {
50
50
  h5,
51
51
  .h5 {
52
- @include headings.no-margin();
52
+ @include heading.no-margin();
53
53
  }
54
54
  }
55
55
 
@@ -129,10 +129,13 @@
129
129
  &::before {
130
130
  @include di.base("status-error", css-form-variables.$field-invalid-icon-size);
131
131
 
132
- content: "";
133
- display: block;
134
- inset-inline-start: 0;
135
- position: absolute;
132
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
133
+ & {
134
+ content: "";
135
+ display: block;
136
+ inset-inline-start: 0;
137
+ position: absolute;
138
+ }
136
139
  }
137
140
  }
138
141
  }
@@ -21,12 +21,15 @@
21
21
  select:not([multiple]) {
22
22
  @include di.variant("caret-down");
23
23
 
24
- -moz-appearance: none;
25
- -webkit-appearance: none;
26
- background-position: calc(100% - #{units.$u1});
27
- background-repeat: no-repeat;
28
- background-size: icon.$size icon.$size;
29
- padding-inline-end: units.$u4;
24
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
25
+ & {
26
+ -moz-appearance: none;
27
+ -webkit-appearance: none;
28
+ background-position: calc(100% - #{units.$u1});
29
+ background-repeat: no-repeat;
30
+ background-size: icon.$size icon.$size;
31
+ padding-inline-end: units.$u4;
32
+ }
30
33
 
31
34
  &:disabled {
32
35
  @include di.variant("caret-down-disabled");