@db-ux/core-components 4.12.1 → 4.13.0-shell-f221975

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 (107) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/agent/Best-Practise_Common-AI-Mistakes.md +3 -3
  3. package/build/components/accordion/accordion.css +13 -6
  4. package/build/components/accordion-item/accordion-item.css +6 -11
  5. package/build/components/badge/badge.css +1 -1
  6. package/build/components/badge/badge.scss +1 -1
  7. package/build/components/button/button.css +0 -8
  8. package/build/components/button/button.scss +0 -11
  9. package/build/components/checkbox/checkbox.css +6 -11
  10. package/build/components/control-panel-brand/control-panel-brand.css +53 -0
  11. package/build/components/control-panel-brand/control-panel-brand.scss +48 -0
  12. package/build/components/control-panel-desktop/control-panel-desktop.css +579 -0
  13. package/build/components/control-panel-desktop/control-panel-desktop.scss +30 -0
  14. package/build/components/control-panel-flat-icon/control-panel-flat-icon.css +258 -0
  15. package/build/components/control-panel-flat-icon/control-panel-flat-icon.scss +239 -0
  16. package/build/components/control-panel-meta/control-panel-meta.css +14 -0
  17. package/build/components/control-panel-meta/control-panel-meta.scss +15 -0
  18. package/build/components/control-panel-mobile/control-panel-mobile.css +438 -0
  19. package/build/components/control-panel-mobile/control-panel-mobile.scss +116 -0
  20. package/build/components/control-panel-navigation/control-panel-navigation.css +390 -0
  21. package/build/components/control-panel-navigation/control-panel-navigation.scss +186 -0
  22. package/build/components/control-panel-navigation-item/control-panel-navigation-item.css +87 -0
  23. package/build/components/control-panel-navigation-item/control-panel-navigation-item.scss +39 -0
  24. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.css +21 -0
  25. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.scss +125 -0
  26. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.css +35 -0
  27. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.scss +36 -0
  28. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.css +158 -0
  29. package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.scss +80 -0
  30. package/build/components/control-panel-primary-actions/control-panel-primary-actions.css +12 -0
  31. package/build/components/control-panel-primary-actions/control-panel-primary-actions.scss +7 -0
  32. package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.css +12 -0
  33. package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.scss +7 -0
  34. package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.css +23 -0
  35. package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.scss +25 -0
  36. package/build/components/custom-button/custom-button.css +11 -19
  37. package/build/components/custom-select/custom-select.css +17 -16
  38. package/build/components/custom-select/custom-select.scss +1 -1
  39. package/build/components/custom-select-dropdown/custom-select-dropdown.css +39 -26
  40. package/build/components/custom-select-form-field/custom-select-form-field.css +6 -11
  41. package/build/components/custom-select-list/custom-select-list.css +6 -11
  42. package/build/components/custom-select-list-item/custom-select-list-item.css +24 -19
  43. package/build/components/divider/divider.css +18 -8
  44. package/build/components/drawer/drawer.css +78 -156
  45. package/build/components/drawer/drawer.scss +124 -167
  46. package/build/components/drawer-footer/drawer-footer.css +34 -0
  47. package/build/components/drawer-footer/drawer-footer.scss +11 -0
  48. package/build/components/drawer-header/drawer-header.css +38 -0
  49. package/build/components/drawer-header/drawer-header.scss +17 -0
  50. package/build/components/input/input.css +6 -11
  51. package/build/components/link/link.css +7 -1
  52. package/build/components/notification/notification.css +7 -1
  53. package/build/components/radio/radio.css +6 -11
  54. package/build/components/select/select.css +6 -11
  55. package/build/components/shell/shell-desktop.css +475 -0
  56. package/build/components/shell/shell-desktop.scss +105 -0
  57. package/build/components/shell/shell-mobile.css +441 -0
  58. package/build/components/shell/shell-mobile.scss +148 -0
  59. package/build/components/shell/shell.css +1670 -0
  60. package/build/components/shell/shell.scss +70 -0
  61. package/build/components/shell-content/shell-content.css +31 -0
  62. package/build/components/shell-content/shell-content.scss +49 -0
  63. package/build/components/shell-sub-navigation/shell-sub-navigation.css +51 -0
  64. package/build/components/shell-sub-navigation/shell-sub-navigation.scss +184 -0
  65. package/build/components/stack/stack-web-component.css +1 -0
  66. package/build/components/stack/stack.css +1 -0
  67. package/build/components/switch/switch.css +6 -11
  68. package/build/components/tab-item/tab-item.css +6 -11
  69. package/build/components/tab-item/tab-item.scss +0 -1
  70. package/build/components/tab-list/tab-list.css +6 -11
  71. package/build/components/table/table.css +6 -11
  72. package/build/components/tabs/tabs.css +55 -39
  73. package/build/components/tabs/tabs.scss +25 -70
  74. package/build/components/tag/tag.css +5 -10
  75. package/build/components/tag/tag.scss +1 -5
  76. package/build/components/textarea/textarea.css +6 -11
  77. package/build/styles/absolute.css +7 -7
  78. package/build/styles/bundle.css +7 -7
  79. package/build/styles/index.css +6 -6
  80. package/build/styles/index.scss +16 -5
  81. package/build/styles/internal/_component.scss +4 -0
  82. package/build/styles/internal/_control-panel-actions.scss +11 -0
  83. package/build/styles/internal/_control-panel-desktop.scss +412 -0
  84. package/build/styles/internal/_control-panel-mobile.scss +107 -0
  85. package/build/styles/internal/_custom-elements.scss +31 -7
  86. package/build/styles/internal/_icon-passing.scss +18 -10
  87. package/build/styles/internal/{_db-puls.scss → _indicator.scss} +37 -16
  88. package/build/styles/internal/_link-components.scss +7 -1
  89. package/build/styles/internal/_navigation-item.scss +122 -0
  90. package/build/styles/internal/_scrollbar.scss +71 -0
  91. package/build/styles/relative.css +7 -7
  92. package/build/styles/rollup.css +7 -7
  93. package/build/styles/visually-hidden.css +1 -1
  94. package/build/styles/wc-workarounds.css +1 -1
  95. package/build/styles/wc-workarounds.scss +11 -0
  96. package/build/styles/webpack.css +7 -7
  97. package/package.json +6 -7
  98. package/build/components/brand/brand.css +0 -32
  99. package/build/components/brand/brand.scss +0 -35
  100. package/build/components/header/header.css +0 -700
  101. package/build/components/header/header.scss +0 -274
  102. package/build/components/navigation/navigation.css +0 -202
  103. package/build/components/navigation/navigation.scss +0 -108
  104. package/build/components/navigation-item/navigation-item.css +0 -447
  105. package/build/components/navigation-item/navigation-item.scss +0 -337
  106. package/build/components/page/page.css +0 -61
  107. package/build/components/page/page.scss +0 -61
@@ -3,19 +3,14 @@
3
3
  /* Variants for adaptive components like input, select, notification, ... */
4
4
  .db-custom-select[data-hide-label=true] > label, .db-visually-hidden,
5
5
  [data-visually-hidden=true] {
6
- clip: rect(0, 0, 0, 0) !important;
7
- overflow: hidden !important;
8
- white-space: nowrap !important;
9
- font-size: 0 !important;
10
- all: initial;
11
- inset-block-start: 0 !important;
12
- block-size: 1px !important;
13
6
  position: absolute !important;
7
+ inset-block-start: 0 !important;
14
8
  inline-size: 1px !important;
15
- border-width: 0 !important;
16
- border-style: initial !important;
17
- border-color: initial !important;
18
- border-image: initial !important;
9
+ block-size: 1px !important;
10
+ overflow: hidden !important;
11
+ clip: rect(0, 0, 0, 0) !important;
12
+ white-space: nowrap !important;
13
+ border: 0 !important;
19
14
  padding: 0 !important;
20
15
  pointer-events: none !important;
21
16
  }
@@ -1030,18 +1025,24 @@ summary[aria-disabled=true]) {
1030
1025
  content: "";
1031
1026
  background-color: var(--db-divider-bg-color);
1032
1027
  position: absolute;
1028
+ /* jscpd:ignore-start */
1033
1029
  inline-size: var(--db-border-width-3xs);
1034
1030
  inset-inline-end: 0;
1035
1031
  inset-block: 0;
1032
+ /* stylelint-disable-next-line db-ux/use-border-color */
1036
1033
  }
1037
1034
  @media (forced-colors: active) {
1038
- .db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost],
1039
- .db-custom-select > .db-button[data-icon=cross][data-variant=ghost] {
1040
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
1041
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
1035
+ .db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost]::after,
1036
+ .db-custom-select > .db-button[data-icon=cross][data-variant=ghost]::after {
1037
+ /* stylelint-disable-next-line db-ux/use-border-color */
1038
+ border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
1042
1039
  }
1043
1040
  }
1044
1041
  .db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost]::after,
1042
+ .db-custom-select > .db-button[data-icon=cross][data-variant=ghost]::after {
1043
+ /* jscpd:ignore-end */
1044
+ }
1045
+ .db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost]::after,
1045
1046
  .db-custom-select > .db-button[data-icon=cross][data-variant=ghost]::after {
1046
1047
  position: absolute;
1047
1048
  inset-inline-end: calc(-1 * var(--db-spacing-fixed-xs) - var(--db-border-width-3xs));
@@ -1054,7 +1055,7 @@ summary[aria-disabled=true]) {
1054
1055
  flex-wrap: wrap;
1055
1056
  }
1056
1057
  .db-custom-select[data-selected-type=tag] .db-custom-select-form-field > button {
1057
- align-self: start;
1058
+ align-self: flex-start;
1058
1059
  }
1059
1060
  .db-custom-select > details[open] > summary[data-force-mobile=true]::before {
1060
1061
  position: fixed;
@@ -102,7 +102,7 @@
102
102
  }
103
103
 
104
104
  > button {
105
- align-self: start;
105
+ align-self: flex-start;
106
106
  }
107
107
  }
108
108
  }
@@ -3,19 +3,14 @@
3
3
  /* Variants for adaptive components like input, select, notification, ... */
4
4
  .db-visually-hidden,
5
5
  [data-visually-hidden=true] {
6
- clip: rect(0, 0, 0, 0) !important;
7
- overflow: hidden !important;
8
- white-space: nowrap !important;
9
- font-size: 0 !important;
10
- all: initial;
11
- inset-block-start: 0 !important;
12
- block-size: 1px !important;
13
6
  position: absolute !important;
7
+ inset-block-start: 0 !important;
14
8
  inline-size: 1px !important;
15
- border-width: 0 !important;
16
- border-style: initial !important;
17
- border-color: initial !important;
18
- border-image: initial !important;
9
+ block-size: 1px !important;
10
+ overflow: hidden !important;
11
+ clip: rect(0, 0, 0, 0) !important;
12
+ white-space: nowrap !important;
13
+ border: 0 !important;
19
14
  padding: 0 !important;
20
15
  pointer-events: none !important;
21
16
  }
@@ -249,18 +244,24 @@
249
244
  content: "";
250
245
  background-color: var(--db-divider-bg-color);
251
246
  position: absolute;
247
+ /* jscpd:ignore-start */
252
248
  block-size: var(--db-border-width-3xs);
253
249
  inset-block-end: 0;
254
250
  inset-inline: 0;
255
- /* stylelint-disable-next-line at-rule-empty-line-before */
251
+ /* stylelint-disable-next-line db-ux/use-border-color */
256
252
  }
257
253
  @media (forced-colors: active) {
258
- .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-checkbox),
259
- .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-checkbox) {
260
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
261
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
254
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after,
255
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after {
256
+ /* stylelint-disable-next-line db-ux/use-border-color */
257
+ border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
262
258
  }
263
259
  }
260
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after,
261
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after {
262
+ /* stylelint-disable-next-line at-rule-empty-line-before */
263
+ /* jscpd:ignore-end */
264
+ }
264
265
  .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button), .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input),
265
266
  .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button),
266
267
  .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input) {
@@ -280,18 +281,24 @@
280
281
  content: "";
281
282
  background-color: var(--db-divider-bg-color);
282
283
  position: absolute;
284
+ /* jscpd:ignore-start */
283
285
  block-size: var(--db-border-width-3xs);
284
286
  inset-block-end: 0;
285
287
  inset-inline: 0;
286
- /* stylelint-disable-next-line at-rule-empty-line-before */
288
+ /* stylelint-disable-next-line db-ux/use-border-color */
287
289
  }
288
290
  @media (forced-colors: active) {
289
- .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input),
290
- .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input) {
291
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
292
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
291
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input)::after,
292
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input)::after {
293
+ /* stylelint-disable-next-line db-ux/use-border-color */
294
+ border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
293
295
  }
294
296
  }
297
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input)::after,
298
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input)::after {
299
+ /* stylelint-disable-next-line at-rule-empty-line-before */
300
+ /* jscpd:ignore-end */
301
+ }
295
302
  .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button),
296
303
  .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button) {
297
304
  --db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
@@ -306,18 +313,24 @@
306
313
  content: "";
307
314
  background-color: var(--db-divider-bg-color);
308
315
  position: absolute;
316
+ /* jscpd:ignore-start */
309
317
  block-size: var(--db-border-width-3xs);
310
318
  inset-block-start: 0;
311
319
  inset-inline: 0;
312
- /* stylelint-disable-next-line at-rule-empty-line-before */
320
+ /* stylelint-disable-next-line db-ux/use-border-color */
313
321
  }
314
322
  @media (forced-colors: active) {
315
- .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button),
316
- .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button) {
317
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
318
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
323
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button)::after,
324
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button)::after {
325
+ /* stylelint-disable-next-line db-ux/use-border-color */
326
+ border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
319
327
  }
320
328
  }
329
+ .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button)::after,
330
+ .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button)::after {
331
+ /* stylelint-disable-next-line at-rule-empty-line-before */
332
+ /* jscpd:ignore-end */
333
+ }
321
334
  .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button),
322
335
  .db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button) {
323
336
  /* stylelint-disable-next-line media-query-no-invalid */
@@ -1,18 +1,13 @@
1
1
  .db-visually-hidden,
2
2
  [data-visually-hidden=true] {
3
- clip: rect(0, 0, 0, 0) !important;
4
- overflow: hidden !important;
5
- white-space: nowrap !important;
6
- font-size: 0 !important;
7
- all: initial;
8
- inset-block-start: 0 !important;
9
- block-size: 1px !important;
10
3
  position: absolute !important;
4
+ inset-block-start: 0 !important;
11
5
  inline-size: 1px !important;
12
- border-width: 0 !important;
13
- border-style: initial !important;
14
- border-color: initial !important;
15
- border-image: initial !important;
6
+ block-size: 1px !important;
7
+ overflow: hidden !important;
8
+ clip: rect(0, 0, 0, 0) !important;
9
+ white-space: nowrap !important;
10
+ border: 0 !important;
16
11
  padding: 0 !important;
17
12
  pointer-events: none !important;
18
13
  }
@@ -1,18 +1,13 @@
1
1
  .db-custom-select-list > legend, .db-visually-hidden,
2
2
  [data-visually-hidden=true] {
3
- clip: rect(0, 0, 0, 0) !important;
4
- overflow: hidden !important;
5
- white-space: nowrap !important;
6
- font-size: 0 !important;
7
- all: initial;
8
- inset-block-start: 0 !important;
9
- block-size: 1px !important;
10
3
  position: absolute !important;
4
+ inset-block-start: 0 !important;
11
5
  inline-size: 1px !important;
12
- border-width: 0 !important;
13
- border-style: initial !important;
14
- border-color: initial !important;
15
- border-image: initial !important;
6
+ block-size: 1px !important;
7
+ overflow: hidden !important;
8
+ clip: rect(0, 0, 0, 0) !important;
9
+ white-space: nowrap !important;
10
+ border: 0 !important;
16
11
  padding: 0 !important;
17
12
  pointer-events: none !important;
18
13
  }
@@ -3,19 +3,14 @@
3
3
  /* Variants for adaptive components like input, select, notification, ... */
4
4
  .db-visually-hidden,
5
5
  [data-visually-hidden=true] {
6
- clip: rect(0, 0, 0, 0) !important;
7
- overflow: hidden !important;
8
- white-space: nowrap !important;
9
- font-size: 0 !important;
10
- all: initial;
11
- inset-block-start: 0 !important;
12
- block-size: 1px !important;
13
6
  position: absolute !important;
7
+ inset-block-start: 0 !important;
14
8
  inline-size: 1px !important;
15
- border-width: 0 !important;
16
- border-style: initial !important;
17
- border-color: initial !important;
18
- border-image: initial !important;
9
+ block-size: 1px !important;
10
+ overflow: hidden !important;
11
+ clip: rect(0, 0, 0, 0) !important;
12
+ white-space: nowrap !important;
13
+ border: 0 !important;
19
14
  padding: 0 !important;
20
15
  pointer-events: none !important;
21
16
  }
@@ -47,17 +42,22 @@ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-d
47
42
  content: "";
48
43
  background-color: var(--db-divider-bg-color);
49
44
  position: absolute;
45
+ /* jscpd:ignore-start */
50
46
  block-size: var(--db-border-width-3xs);
51
47
  inset-block-end: 0;
52
48
  inset-inline: 0;
53
- /* stylelint-disable-next-line at-rule-empty-line-before */
49
+ /* stylelint-disable-next-line db-ux/use-border-color */
54
50
  }
55
51
  @media (forced-colors: active) {
56
- db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true] {
57
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
58
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
52
+ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true]::before {
53
+ /* stylelint-disable-next-line db-ux/use-border-color */
54
+ border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
59
55
  }
60
56
  }
57
+ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true]::before {
58
+ /* stylelint-disable-next-line at-rule-empty-line-before */
59
+ /* jscpd:ignore-end */
60
+ }
61
61
 
62
62
  .db-custom-select-list-item:not([hidden]) {
63
63
  display: flex;
@@ -95,17 +95,22 @@ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-d
95
95
  content: "";
96
96
  background-color: var(--db-divider-bg-color);
97
97
  position: absolute;
98
+ /* jscpd:ignore-start */
98
99
  block-size: var(--db-border-width-3xs);
99
100
  inset-block-end: 0;
100
101
  inset-inline: 0;
101
- /* stylelint-disable-next-line at-rule-empty-line-before */
102
+ /* stylelint-disable-next-line db-ux/use-border-color */
102
103
  }
103
104
  @media (forced-colors: active) {
104
- .db-custom-select-list-item[data-divider=true]:not(:last-of-type) {
105
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
106
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
105
+ .db-custom-select-list-item[data-divider=true]:not(:last-of-type)::before {
106
+ /* stylelint-disable-next-line db-ux/use-border-color */
107
+ border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
107
108
  }
108
109
  }
110
+ .db-custom-select-list-item[data-divider=true]:not(:last-of-type)::before {
111
+ /* stylelint-disable-next-line at-rule-empty-line-before */
112
+ /* jscpd:ignore-end */
113
+ }
109
114
  .db-custom-select-list-item > label {
110
115
  --db-icon-margin-start: auto;
111
116
  --db-check-element-label-color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
@@ -22,17 +22,22 @@
22
22
  content: "";
23
23
  background-color: var(--db-divider-bg-color);
24
24
  position: absolute;
25
+ /* jscpd:ignore-start */
25
26
  block-size: var(--db-border-width-3xs);
26
27
  inset-block-start: 0;
27
28
  inset-inline: 0;
28
- /* stylelint-disable-next-line at-rule-empty-line-before */
29
+ /* stylelint-disable-next-line db-ux/use-border-color */
29
30
  }
30
31
  @media (forced-colors: active) {
31
- .db-divider:not([data-variant=vertical]) {
32
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
33
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
32
+ .db-divider:not([data-variant=vertical])::before {
33
+ /* stylelint-disable-next-line db-ux/use-border-color */
34
+ border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
34
35
  }
35
36
  }
37
+ .db-divider:not([data-variant=vertical])::before {
38
+ /* stylelint-disable-next-line at-rule-empty-line-before */
39
+ /* jscpd:ignore-end */
40
+ }
36
41
  .db-divider:not([data-variant=vertical])[data-width=full] {
37
42
  inline-size: 100%;
38
43
  }
@@ -48,17 +53,22 @@
48
53
  content: "";
49
54
  background-color: var(--db-divider-bg-color);
50
55
  position: absolute;
56
+ /* jscpd:ignore-start */
51
57
  inline-size: var(--db-border-width-3xs);
52
58
  inset-inline-start: 0;
53
59
  inset-block: 0;
54
- /* stylelint-disable-next-line at-rule-empty-line-before */
60
+ /* stylelint-disable-next-line db-ux/use-border-color */
55
61
  }
56
62
  @media (forced-colors: active) {
57
- .db-divider[data-variant=vertical] {
58
- /* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
59
- border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
63
+ .db-divider[data-variant=vertical]::before {
64
+ /* stylelint-disable-next-line db-ux/use-border-color */
65
+ border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
60
66
  }
61
67
  }
68
+ .db-divider[data-variant=vertical]::before {
69
+ /* stylelint-disable-next-line at-rule-empty-line-before */
70
+ /* jscpd:ignore-end */
71
+ }
62
72
  .db-divider[data-variant=vertical]:is(:not([data-margin]), [data-margin=small]) {
63
73
  margin: 0 var(--db-spacing-fixed-sm);
64
74
  }