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
@@ -7,21 +7,23 @@
7
7
  @use "form-control.variables" as form-control-variables;
8
8
 
9
9
  @mixin root() {
10
- display: block;
11
- inline-size: 100%;
12
- block-size: form-control-variables.$block-size;
13
- padding-block: units.$padding-base-block;
14
- padding-inline: (units.$padding-base-inline + 2);
15
- font-size: typography.$root-font-size-base;
16
- line-height: typography.$line-height-base;
17
- color: colors.$input-color;
18
- background-color: colors.$input-bg;
19
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
20
- border: form-control-variables.$border-width solid colors.$input-border;
21
- border-radius: form-control-variables.$input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
22
- transition:
23
- border-color ease-in-out 0.15s,
24
- box-shadow ease-in-out 0.15s;
10
+ & {
11
+ display: block;
12
+ inline-size: 100%;
13
+ block-size: form-control-variables.$block-size;
14
+ padding-block: units.$padding-base-block;
15
+ padding-inline: (units.$padding-base-inline + 2);
16
+ font-size: typography.$root-font-size-base;
17
+ line-height: typography.$line-height-base;
18
+ color: colors.$input-color;
19
+ background-color: colors.$input-bg;
20
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
21
+ border: form-control-variables.$border-width solid colors.$input-border;
22
+ border-radius: form-control-variables.$input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
23
+ transition:
24
+ border-color ease-in-out 0.15s,
25
+ box-shadow ease-in-out 0.15s;
26
+ }
25
27
 
26
28
  @include utilities.placeholder(colors.$input-color-placeholder);
27
29
 
@@ -69,9 +69,6 @@ form {
69
69
  --highlight-box-nocounter-block-size: calc(100% - #{units.$u2});
70
70
  }
71
71
 
72
- display: flex;
73
- flex-wrap: wrap;
74
-
75
72
  > [class*="col-"] {
76
73
  display: flex;
77
74
  flex-direction: column;
@@ -85,6 +82,12 @@ form {
85
82
  }
86
83
  }
87
84
  }
85
+
86
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
87
+ & {
88
+ display: flex;
89
+ flex-wrap: wrap;
90
+ }
88
91
  }
89
92
 
90
93
  &.dso-banner {
@@ -101,7 +104,10 @@ form {
101
104
  padding-block-start: units.$u3;
102
105
  }
103
106
 
104
- background-size: 0; // background image killed off here, to be shown in the ::before
107
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
108
+ & {
109
+ background-size: 0; // background image killed off here, to be shown in the ::before
110
+ }
105
111
 
106
112
  &.no-button-banner {
107
113
  min-block-size: 296px;
@@ -0,0 +1 @@
1
+ @forward "heading.mixins";
@@ -1,7 +1,7 @@
1
1
  @use "../../variables/colors";
2
2
  @use "../../variables/typography";
3
3
  @use "../../variables/units";
4
- @use "../headings";
4
+ @use "./heading.mixins" as heading-mixins;
5
5
 
6
6
  h1,
7
7
  .h1,
@@ -15,7 +15,7 @@ h5,
15
15
  .h5,
16
16
  h6,
17
17
  .h6 {
18
- @include headings.base();
18
+ @include heading-mixins.base();
19
19
  }
20
20
 
21
21
  h1,
@@ -24,7 +24,7 @@ h2,
24
24
  .h2,
25
25
  h3,
26
26
  .h3 {
27
- @include headings.margin-large();
27
+ @include heading-mixins.margin-large();
28
28
  }
29
29
 
30
30
  h1,
@@ -33,7 +33,7 @@ h1,
33
33
  }
34
34
 
35
35
  h1 {
36
- @include headings.h1();
36
+ @include heading-mixins.h1();
37
37
  }
38
38
 
39
39
  h2,
@@ -42,7 +42,7 @@ h2,
42
42
  }
43
43
 
44
44
  h2 {
45
- @include headings.h2();
45
+ @include heading-mixins.h2();
46
46
  }
47
47
 
48
48
  h3,
@@ -51,7 +51,7 @@ h3,
51
51
  }
52
52
 
53
53
  h3 {
54
- @include headings.h3();
54
+ @include heading-mixins.h3();
55
55
  }
56
56
 
57
57
  h4,
@@ -60,7 +60,7 @@ h5,
60
60
  .h5,
61
61
  h6,
62
62
  .h6 {
63
- @include headings.margin-small();
63
+ @include heading-mixins.margin-small();
64
64
  }
65
65
 
66
66
  h4,
@@ -69,7 +69,7 @@ h4,
69
69
  }
70
70
 
71
71
  h4 {
72
- @include headings.h4();
72
+ @include heading-mixins.h4();
73
73
  }
74
74
 
75
75
  h5,
@@ -78,7 +78,7 @@ h5,
78
78
  }
79
79
 
80
80
  h5 {
81
- @include headings.h5();
81
+ @include heading-mixins.h5();
82
82
  }
83
83
 
84
84
  h6,
@@ -19,9 +19,12 @@
19
19
 
20
20
  @include step-counter.step-counter();
21
21
 
22
- container-type: inline-size;
23
- position: relative;
24
- z-index: 1;
22
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
23
+ & {
24
+ container-type: inline-size;
25
+ position: relative;
26
+ z-index: 1;
27
+ }
25
28
 
26
29
  &.dso-yellow,
27
30
  &:not(.dso-border):not(.dso-white) {
@@ -11,8 +11,11 @@
11
11
  &::before {
12
12
  @include di.base("times-zwart");
13
13
 
14
- content: "";
15
- display: inline-block;
14
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
15
+ & {
16
+ content: "";
17
+ display: inline-block;
18
+ }
16
19
  }
17
20
  }
18
21
  }
@@ -3,11 +3,13 @@
3
3
  @use "../../variables/media-query-breakpoints";
4
4
 
5
5
  @mixin root() {
6
- background-color: transparent;
7
- color: colors.$grasgroen;
8
- border: 0;
9
- margin-inline-start: units.$u1;
10
- padding: 0;
6
+ & {
7
+ background-color: transparent;
8
+ color: colors.$grasgroen;
9
+ border: 0;
10
+ margin-inline-start: units.$u1;
11
+ padding: 0;
12
+ }
11
13
 
12
14
  &.dso-info-secondary {
13
15
  color: colors.$grijs-60;
@@ -10,5 +10,7 @@
10
10
  @mixin root() {
11
11
  @include set-colors.apply(colors.$lime-20);
12
12
 
13
- box-shadow: insert-variables.$box-shadow;
13
+ & {
14
+ box-shadow: insert-variables.$box-shadow;
15
+ }
14
16
  }
@@ -70,8 +70,12 @@
70
70
 
71
71
  &.dso-label-bright {
72
72
  @include set-colors.apply(label-variables.$bright-bg-color, $icons: false, $links: false);
73
- outline: 1px solid label-variables.$bright-border-color;
74
- outline-offset: -1px;
73
+
74
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
75
+ & {
76
+ outline: 1px solid label-variables.$bright-border-color;
77
+ outline-offset: -1px;
78
+ }
75
79
  }
76
80
 
77
81
  &.dso-label-attention {
@@ -36,7 +36,10 @@
36
36
  a {
37
37
  @include anchor.reverse();
38
38
 
39
- color: colors.$zwart;
39
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
40
+ & {
41
+ color: colors.$zwart;
42
+ }
40
43
 
41
44
  &:active {
42
45
  color: colors.$zwart;
@@ -10,9 +10,12 @@
10
10
  &::before {
11
11
  @include di.base("chevron-right");
12
12
 
13
- content: "";
14
- display: inline-block;
15
- margin-inline-start: units.$u1 * -1;
13
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
14
+ & {
15
+ content: "";
16
+ display: inline-block;
17
+ margin-inline-start: units.$u1 * -1;
18
+ }
16
19
  }
17
20
 
18
21
  &:active,
@@ -6,9 +6,11 @@
6
6
  @use "list-button.variables" as list-button-variables;
7
7
 
8
8
  @mixin _state-styling($background-color: inherit, $border-color: inherit, $color: inherit) {
9
- background-color: $background-color;
10
- border-color: $border-color;
11
- color: $color;
9
+ & {
10
+ background-color: $background-color;
11
+ border-color: $border-color;
12
+ color: $color;
13
+ }
12
14
  }
13
15
 
14
16
  @mixin button-group($input-number-selector, $list-button-selector) {
@@ -19,7 +21,10 @@
19
21
  > * {
20
22
  @include _state-styling(colors.$wit, colors.$grijs-10, colors.$grijs-60);
21
23
 
22
- pointer-events: none;
24
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
25
+ & {
26
+ pointer-events: none;
27
+ }
23
28
  }
24
29
  }
25
30
 
@@ -46,11 +51,13 @@
46
51
  > #{$input-number-selector} {
47
52
  @include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-90);
48
53
 
49
- border-style: solid;
50
- border-width: 1px;
51
- flex-wrap: nowrap;
52
- padding-block: 0;
53
- padding-inline: units.$u2;
54
+ & {
55
+ border-style: solid;
56
+ border-width: 1px;
57
+ flex-wrap: nowrap;
58
+ padding-block: 0;
59
+ padding-inline: units.$u2;
60
+ }
54
61
 
55
62
  @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
56
63
  justify-content: center;
@@ -63,12 +70,14 @@
63
70
  }
64
71
 
65
72
  > *.dso-selected + #{$input-number-selector} {
66
- @include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
73
+ @include _state-styling(colors.$wit, button.$secondary-border-color, colors.$grijs-90);
67
74
 
68
- box-shadow:
69
- inset 0 -1px 0 0 button.$secondary-hover-background-color,
70
- inset 0 1px 0 0 button.$secondary-hover-background-color,
71
- inset -1px 0 0 0 button.$secondary-hover-background-color;
75
+ & {
76
+ box-shadow:
77
+ inset 0 -1px 0 0 button.$secondary-border-color,
78
+ inset 0 1px 0 0 button.$secondary-border-color,
79
+ inset -1px 0 0 0 button.$secondary-border-color;
80
+ }
72
81
  }
73
82
 
74
83
  > *:active + #{$input-number-selector},
@@ -85,7 +94,9 @@
85
94
  &:hover {
86
95
  @include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-60);
87
96
 
88
- opacity: 1;
97
+ & {
98
+ opacity: 1;
99
+ }
89
100
  }
90
101
  }
91
102
 
@@ -97,17 +108,19 @@
97
108
  @mixin root() {
98
109
  @include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-90);
99
110
 
100
- border-radius: button.$border-radius;
101
- border-width: 1px;
102
- border-style: solid;
103
- font-weight: 600;
104
- padding-block: #{units.$u2 - 1};
105
- padding-inline: #{units.$u2 - 1} #{units.$u6 - 1};
106
- position: relative;
107
- text-align: start;
108
- white-space: normal;
109
- inline-size: 100%;
110
- cursor: pointer;
111
+ & {
112
+ border-radius: button.$border-radius;
113
+ border-width: 1px;
114
+ border-style: solid;
115
+ font-weight: 600;
116
+ padding-block: #{units.$u2 - 1};
117
+ padding-inline: #{units.$u2 - 1} #{units.$u6 - 1};
118
+ position: relative;
119
+ text-align: start;
120
+ white-space: normal;
121
+ inline-size: 100%;
122
+ cursor: pointer;
123
+ }
111
124
 
112
125
  &:hover,
113
126
  &:focus {
@@ -128,7 +141,10 @@
128
141
  &:hover {
129
142
  @include _state-styling(colors.$wit, colors.$grijs-20, colors.$grijs-60);
130
143
 
131
- opacity: 1;
144
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
145
+ & {
146
+ opacity: 1;
147
+ }
132
148
  }
133
149
  }
134
150
 
@@ -4,9 +4,10 @@ $mark-color: #f8f5ce;
4
4
  $highlight-color: #dbd136;
5
5
 
6
6
  mark {
7
- background-color: $mark-color;
8
- color: colors.$zwart;
9
- padding-block: 0.2rem;
7
+ background-color: var(--_dt-mark-bg-color, $mark-color);
8
+ color: var(--_dt-mark-color, colors.$zwart);
9
+ padding-block: var(--_dt-mark-padding-block, 0.2rem);
10
+ font-weight: var(--_dt-mark-font-weight, normal);
10
11
 
11
12
  &.dso-highlight {
12
13
  background-color: $highlight-color;
@@ -75,22 +75,25 @@
75
75
  }
76
76
 
77
77
  > .dso-dialog > .dso-body {
78
- /* stylelint-disable-next-line scss/operator-no-newline-after -- disabled because of prettier newline */
78
+ // stylelint-disable-next-line scss/operator-no-newline-after -- disabled because of prettier newline
79
79
  $dso-body-unavailable-height: (2 * modal-variables.$header-padding) +
80
80
  (modal-variables.$footer-button-block-size + modal-variables.$footer-padding);
81
81
 
82
82
  @include rich-content.children();
83
83
 
84
- block-size: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
85
- max-block-size: calc(#{modal-variables.$max-block-size} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
86
- min-block-size: 1.5rem;
87
- overflow-x: auto;
84
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
85
+ & {
86
+ block-size: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
87
+ max-block-size: calc(#{modal-variables.$max-block-size} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
88
+ min-block-size: 1.5rem;
89
+ overflow-x: auto;
88
90
 
89
- padding: modal-variables.$body-padding;
91
+ padding: modal-variables.$body-padding;
92
+ }
90
93
  }
91
94
 
92
95
  > .dso-dialog > dso-scrollable {
93
- /* stylelint-disable-next-line scss/operator-no-newline-after -- disabled because of prettier newline */
96
+ // stylelint-disable-next-line scss/operator-no-newline-after -- disabled because of prettier newline
94
97
  $dso-body-unavailable-height: (2 * modal-variables.$header-padding) +
95
98
  (modal-variables.$footer-button-block-size + modal-variables.$footer-padding);
96
99
 
@@ -101,7 +104,10 @@
101
104
  .dso-body {
102
105
  @include rich-content.children();
103
106
 
104
- padding: modal-variables.$body-padding;
107
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
108
+ & {
109
+ padding: modal-variables.$body-padding;
110
+ }
105
111
  }
106
112
  }
107
113
 
@@ -114,12 +120,15 @@
114
120
  .dso-footer {
115
121
  @include modal-wide-buttons();
116
122
 
117
- min-block-size: modal-variables.$footer-button-block-size + modal-variables.$footer-padding;
123
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
124
+ & {
125
+ min-block-size: modal-variables.$footer-button-block-size + modal-variables.$footer-padding;
118
126
 
119
- padding-block: calc(modal-variables.$footer-padding / 2);
120
- padding-inline: modal-variables.$footer-padding;
127
+ padding-block: calc(modal-variables.$footer-padding / 2);
128
+ padding-inline: modal-variables.$footer-padding;
121
129
 
122
- text-align: end;
130
+ text-align: end;
131
+ }
123
132
  }
124
133
 
125
134
  @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
@@ -23,9 +23,12 @@ body:has(dso-modal.hydrated) {
23
23
  &::before {
24
24
  @include di.base("times");
25
25
 
26
- content: "";
27
- display: inline-block;
28
- vertical-align: middle;
26
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
27
+ & {
28
+ content: "";
29
+ display: inline-block;
30
+ vertical-align: middle;
31
+ }
29
32
  }
30
33
  }
31
34
 
@@ -81,11 +81,14 @@
81
81
  > button {
82
82
  @include anchor.reverse();
83
83
 
84
- font-size: 1.25em;
85
- line-height: 1;
86
- margin-block-start: units.$u1;
87
- padding-block: units.$u1 #{units.$u1 - 1px};
88
- padding-inline: units.$u2;
84
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
85
+ & {
86
+ font-size: 1.25em;
87
+ line-height: 1;
88
+ margin-block-start: units.$u1;
89
+ padding-block: units.$u1 #{units.$u1 - 1px};
90
+ padding-inline: units.$u2;
91
+ }
89
92
  }
90
93
  }
91
94
  }
@@ -98,10 +101,13 @@
98
101
  > button {
99
102
  @include anchor.reverse();
100
103
 
101
- font-size: typography.$root-font-size-base;
102
- margin-block-start: (units.$u1 * 0.5);
103
- padding-block: (units.$u1 * 0.5) #{units.$u1 * 0.5 - 1px};
104
- padding-inline: units.$u1;
104
+ // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
105
+ & {
106
+ font-size: typography.$root-font-size-base;
107
+ margin-block-start: (units.$u1 * 0.5);
108
+ padding-block: (units.$u1 * 0.5) #{units.$u1 * 0.5 - 1px};
109
+ padding-inline: units.$u1;
110
+ }
105
111
  }
106
112
  }
107
113
  }
@@ -4,72 +4,74 @@
4
4
  @use "pagination.variables" as pagination-variables;
5
5
 
6
6
  @mixin root() {
7
- padding-inline-start: initial;
8
- text-align: center;
9
-
10
- > li {
11
- display: inline-block;
12
- font-weight: bold;
13
- line-height: calc(pagination-variables.$item-size - pagination-variables.$border-size * 2);
7
+ ul {
8
+ padding-inline-start: initial;
14
9
  text-align: center;
15
- vertical-align: middle;
16
10
 
17
- > a,
18
- > span {
19
- align-items: center;
20
- color: colors.$grasgroen;
21
- display: flex;
22
- block-size: pagination-variables.$item-size;
23
- justify-content: center;
24
- position: relative;
25
- min-inline-size: pagination-variables.$item-size;
26
- padding: #{units.$u1 * 0.25};
27
- padding-block: units.$u1 * 0.25;
28
- padding-inline: units.$u1 * 0.25;
11
+ > li {
12
+ display: inline-block;
13
+ font-weight: bold;
14
+ line-height: calc(pagination-variables.$item-size - pagination-variables.$border-size * 2);
15
+ text-align: center;
16
+ vertical-align: middle;
29
17
 
30
- &:active {
31
- background-color: colors.$grasgroen-10;
32
- }
33
- }
18
+ > a,
19
+ > span {
20
+ align-items: center;
21
+ color: colors.$grasgroen;
22
+ display: flex;
23
+ block-size: pagination-variables.$item-size;
24
+ justify-content: center;
25
+ position: relative;
26
+ min-inline-size: pagination-variables.$item-size;
27
+ padding: #{units.$u1 * 0.25};
28
+ padding-block: units.$u1 * 0.25;
29
+ padding-inline: units.$u1 * 0.25;
34
30
 
35
- > span {
36
- border: pagination-variables.$border-size solid transparent;
37
- border-radius: pagination-variables.$item-size * 0.5;
38
- }
31
+ &:active {
32
+ background-color: colors.$grasgroen-10;
33
+ }
34
+ }
39
35
 
40
- a {
41
- line-height: pagination-variables.$line-height;
42
- text-decoration: none;
36
+ > span {
37
+ border: pagination-variables.$border-size solid transparent;
38
+ border-radius: pagination-variables.$item-size * 0.5;
39
+ }
43
40
 
44
- &:hover,
45
- &:focus {
41
+ a {
42
+ line-height: pagination-variables.$line-height;
46
43
  text-decoration: none;
47
44
 
45
+ &:hover,
46
+ &:focus {
47
+ text-decoration: none;
48
+
49
+ &::after {
50
+ border-block-end-color: colors.$grasgroen;
51
+ }
52
+ }
53
+
48
54
  &::after {
49
- border-block-end-color: colors.$grasgroen;
55
+ border-block-end: 3px solid transparent;
56
+ inset-block-end: 0;
57
+ content: "";
58
+ display: inline-block;
59
+ inset-inline-start: 0;
60
+ position: absolute;
61
+ inline-size: 100%;
50
62
  }
51
63
  }
52
64
 
53
- &::after {
54
- border-block-end: 3px solid transparent;
55
- inset-block-end: 0;
56
- content: "";
57
- display: inline-block;
58
- inset-inline-start: 0;
59
- position: absolute;
60
- inline-size: 100%;
65
+ &.active {
66
+ span {
67
+ background-color: colors.$grasgroen;
68
+ color: colors.$wit;
69
+ }
61
70
  }
62
- }
63
71
 
64
- &.active {
65
- span {
66
- background-color: colors.$grasgroen;
67
- color: colors.$wit;
72
+ & + li {
73
+ margin-inline-start: units.$u1;
68
74
  }
69
75
  }
70
-
71
- & + li {
72
- margin-inline-start: units.$u1;
73
- }
74
76
  }
75
77
  }
@@ -1,5 +1,5 @@
1
1
  @use "../pagination";
2
-
2
+ @use "../../utilities";
3
3
  @use "../../di";
4
4
 
5
5
  .pagination {
@@ -27,4 +27,9 @@
27
27
  @include di.base("chevron-right");
28
28
  }
29
29
  }
30
+
31
+ .sr-only.sr-only {
32
+ // class daisy-chained to prevent overwrites by other more specific styling set on this element.
33
+ @include utilities.sr-only();
34
+ }
30
35
  }