@repobit/dex-system-design 0.23.36 → 0.23.37

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.23.37](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.36...@repobit/dex-system-design@0.23.37) (2026-05-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** css adjustment for accesibility
11
+
12
+
6
13
  ## [0.23.36](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.35...@repobit/dex-system-design@0.23.36) (2026-05-25)
7
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "0.23.36",
3
+ "version": "0.23.37",
4
4
  "description": "Design system based on Web Components.",
5
5
  "author": "Iordache Matei Cezar <miordache@bitdefender.com>",
6
6
  "homepage": "https://github.com/bitdefender/dex-core#readme",
@@ -70,8 +70,8 @@
70
70
  "url": "https://github.com/bitdefender/dex-core/issues"
71
71
  },
72
72
  "dependencies": {
73
- "@repobit/dex-store": "1.3.32",
74
- "@repobit/dex-store-elements": "1.4.24",
73
+ "@repobit/dex-store": "1.3.33",
74
+ "@repobit/dex-store-elements": "1.4.25",
75
75
  "lit": "^3.3.2"
76
76
  },
77
77
  "devDependencies": {
@@ -88,5 +88,5 @@
88
88
  "volta": {
89
89
  "node": "24.14.0"
90
90
  },
91
- "gitHead": "70aa53bfaf0b469d19aaae35a898ba7cba99587c"
91
+ "gitHead": "5a292c3a335078319bff9151c88f8be3061c7146"
92
92
  }
@@ -28,6 +28,13 @@ export default css`
28
28
  0 0 0 4px var(--color-blue-700);
29
29
  position: relative;
30
30
  z-index: 1;
31
+ border-radius: var(--radius-sm);
32
+ }
33
+
34
+ /* Focus ring pentru varianta terms-of-use — fara background deci ring simplu */
35
+ :host(bd-accordion-bg-item[data-variant="terms-of-use"][data-bd-acc-focus]) {
36
+ // box-shadow: var(--focus-outline-primary);
37
+ border-radius: var(--radius-sm);
31
38
  }
32
39
 
33
40
  :host(bd-accordion-bg-item:last-of-type) {
@@ -59,6 +66,16 @@ export default css`
59
66
  padding-bottom: 0;
60
67
  }
61
68
 
69
+ ::slotted(bd-list) {
70
+ --bd-li-margin-bottom: var(--spacing-16);
71
+ display: block;
72
+ margin-bottom: var(--spacing-16);
73
+ }
74
+
75
+ ::slotted(bd-list:last-child) {
76
+ margin-bottom: 0;
77
+ }
78
+
62
79
  /* Footer slot — italic, spacing deasupra */
63
80
  ::slotted([slot="footer"]) {
64
81
  display: block;
@@ -95,14 +112,7 @@ export default css`
95
112
  color: var(--color-neutral-900);
96
113
  transition: color var(--transition-duration-normal) var(--transition-easing-smooth);
97
114
  }
98
- ::slotted(bd-list) {
99
- --bd-li-margin-bottom: var(--spacing-16);
100
- display: block;
101
- margin-bottom: var(--spacing-16);
102
- }
103
- ::slotted(bd-list:last-child) {
104
- margin-bottom: 0;
105
- }
115
+
106
116
  .bd-accordion-bg-question[aria-expanded="true"] {
107
117
  color: var(--color-blue-500);
108
118
  }
@@ -91,7 +91,7 @@ class BdAccordionBg extends LitElement {
91
91
  <p class="user-guide-link">
92
92
  <a href=${this.guideHref}>
93
93
  ${this.guideIcon
94
- ? html`<span class="icon"><img src=${this.guideIcon} alt="" /></span>`
94
+ ? html`<bd-plus-icon size="16" color="#006DFF"></bd-plus-icon>`
95
95
  : ""}
96
96
  ${this.guideLabel}
97
97
  </a>
@@ -1,10 +1,5 @@
1
1
  import { css } from "lit";
2
2
 
3
- /**
4
- * bd-accordion-item — tokens scoped with `:host-context(...)` so vars resolve on
5
- * this host (slotted rules from the section do not). Default + `default-blue` =
6
- * parent is not `variant="small"` (tuned title/body colors for light tinted bgs).
7
- */
8
3
  export const accordionItem = css`
9
4
  :host {
10
5
  display: block;
@@ -18,13 +13,13 @@ export const accordionItem = css`
18
13
  box-shadow: var(--focus-outline-primary);
19
14
  position: relative;
20
15
  z-index: 1;
16
+ border-radius: var(--radius-sm);
21
17
  }
22
18
 
23
19
  :host(:last-child) {
24
20
  margin-bottom: 0;
25
21
  }
26
22
 
27
- /* Default / non-small — panel body = 14px (fontSize-sm), titles 16px semibold */
28
23
  :host-context(bd-accordion-section:not([variant="small"])) {
29
24
  --bd-acc-title-font-size: var(--typography-fontSize-base);
30
25
  --bd-acc-title-font-weight: var(--typography-fontWeight-semibold);
@@ -37,13 +32,11 @@ export const accordionItem = css`
37
32
  --bd-acc-panel-color: var(--color-neutral-800);
38
33
  }
39
34
 
40
- /* default-blue: titles blue-600 on blue-50 for stronger contrast (AA vs blue-500) */
41
35
  :host-context(bd-accordion-section[variant="default-blue"]) {
42
36
  --bd-acc-title-color-expanded: var(--color-blue-600);
43
37
  --bd-acc-title-color-collapsed: var(--color-blue-600);
44
38
  }
45
39
 
46
- /* Small variant — title colors below (collapsed neutral-900; expanded blue-800; hover blue-500) */
47
40
  :host-context(bd-accordion-section[variant="small"]) {
48
41
  --bd-acc-header-padding: var(--spacing-12) var(--spacing-8);
49
42
  --bd-acc-header-margin-bottom: var(--spacing-0);
@@ -61,14 +54,18 @@ export const accordionItem = css`
61
54
  --bd-acc-panel-paragraph-gap: var(--spacing-0);
62
55
  --bd-acc-item-margin-bottom: var(--spacing-0);
63
56
  }
64
- ::slotted(bd-list) {
65
- --bd-li-margin-bottom: var(--spacing-16);
66
- display: block;
67
- margin-bottom: var(--spacing-16);
68
- }
57
+
58
+ /* bd-list in slot — spacing intre list si ce urmeaza */
59
+ ::slotted(bd-list) {
60
+ --bd-li-margin-bottom: var(--spacing-16);
61
+ display: block;
62
+ margin-bottom: var(--spacing-16);
63
+ }
64
+
69
65
  ::slotted(bd-list:last-child) {
70
- margin-bottom: 0;
71
- }
66
+ margin-bottom: 0;
67
+ }
68
+
72
69
  .header {
73
70
  display: flex;
74
71
  align-items: flex-start;
@@ -82,10 +79,7 @@ export const accordionItem = css`
82
79
  font-family: var(--typography-fontFamily-sans);
83
80
  font-style: normal;
84
81
  font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));
85
- font-weight: var(
86
- --bd-acc-title-font-weight,
87
- var(--typography-fontWeight-semibold)
88
- );
82
+ font-weight: var(--bd-acc-title-font-weight, var(--typography-fontWeight-semibold));
89
83
  line-height: var(--bd-acc-title-line-height, var(--typography-lineHeight-normal));
90
84
  margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));
91
85
  }
@@ -103,27 +97,19 @@ export const accordionItem = css`
103
97
  color: var(--color-blue-500);
104
98
  }
105
99
 
106
- :host-context(bd-accordion-section[variant="small"])
107
- .header[aria-expanded="false"]
108
- .title {
100
+ :host-context(bd-accordion-section[variant="small"]) .header[aria-expanded="false"] .title {
109
101
  color: var(--color-neutral-900);
110
102
  }
111
103
 
112
- :host-context(bd-accordion-section[variant="small"])
113
- .header[aria-expanded="false"]:hover
114
- .title {
104
+ :host-context(bd-accordion-section[variant="small"]) .header[aria-expanded="false"]:hover .title {
115
105
  color: var(--color-blue-500);
116
106
  }
117
107
 
118
- :host-context(bd-accordion-section[variant="small"])
119
- .header[aria-expanded="true"]
120
- .title {
108
+ :host-context(bd-accordion-section[variant="small"]) .header[aria-expanded="true"] .title {
121
109
  color: var(--color-blue-800);
122
110
  }
123
111
 
124
- :host-context(bd-accordion-section[variant="small"])
125
- .header[aria-expanded="true"]:hover
126
- .title {
112
+ :host-context(bd-accordion-section[variant="small"]) .header[aria-expanded="true"]:hover .title {
127
113
  color: var(--color-blue-500);
128
114
  }
129
115
 
@@ -137,12 +123,9 @@ export const accordionItem = css`
137
123
  justify-content: center;
138
124
  line-height: 0;
139
125
  user-select: none;
140
- /* First-line alignment: icon sits in first line box, not vertically centered on wrapped title */
141
126
  margin-top: calc(
142
- (
143
- var(--bd-acc-title-line-height, var(--typography-lineHeight-normal)) * 1em -
144
- var(--bd-acc-toggle-size, var(--icon-sm-size))
145
- ) / 2
127
+ (var(--bd-acc-title-line-height, var(--typography-lineHeight-normal)) * 1em -
128
+ var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2
146
129
  );
147
130
  }
148
131
 
@@ -155,39 +138,30 @@ export const accordionItem = css`
155
138
 
156
139
  .title {
157
140
  flex: 1;
158
- font-weight: var(
159
- --bd-acc-title-font-weight,
160
- var(--typography-fontWeight-semibold)
161
- );
141
+ font-weight: var(--bd-acc-title-font-weight, var(--typography-fontWeight-semibold));
162
142
  }
163
143
 
164
144
  .content {
165
- padding: var(
166
- --bd-acc-panel-padding,
167
- 0 0 0 calc(var(--icon-sm-size) + var(--spacing-12))
168
- );
145
+ padding: var(--bd-acc-panel-padding, 0 0 0 calc(var(--icon-sm-size) + var(--spacing-12)));
169
146
  font-family: var(--typography-fontFamily-sans);
170
147
  font-size: var(--bd-acc-panel-font-size, var(--typography-fontSize-sm));
171
- font-weight: var(
172
- --bd-acc-panel-font-weight,
173
- var(--typography-fontWeight-normal)
174
- );
175
- line-height: var(
176
- --bd-acc-panel-line-height,
177
- var(--typography-lineHeight-normal)
178
- );
148
+ font-weight: var(--bd-acc-panel-font-weight, var(--typography-fontWeight-normal));
149
+ line-height: var(--bd-acc-panel-line-height, var(--typography-lineHeight-normal));
179
150
  color: var(--bd-acc-panel-color, var(--color-neutral-700));
180
151
  }
181
152
 
182
153
  .content[hidden] {
183
154
  display: none !important;
184
155
  }
156
+
185
157
  ::slotted(bd-p) {
186
158
  padding-bottom: var(--spacing-16);
187
159
  }
160
+
188
161
  ::slotted(bd-p:last-child) {
189
162
  padding-bottom: 0px;
190
163
  }
164
+
191
165
  ::slotted(p) {
192
166
  margin-top: 0;
193
167
  margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));
@@ -204,16 +178,12 @@ export const accordionItem = css`
204
178
  `;
205
179
 
206
180
  export const accordionSection = css`
207
- // :host {
208
- // display: block;
209
- // background-color: var(--bd-acc-section-bg, var(--color-neutral-25));
210
- // padding: var(--bd-acc-section-padding, var(--spacing-32));
211
- // box-sizing: border-box;
212
- // }
213
181
  .bd-accordion-section-container {
214
182
  background-color: var(--bd-acc-section-bg, var(--color-neutral-25));
215
183
  padding: var(--bd-acc-section-padding, var(--spacing-32));
216
- border-radius: var(--bd-acc-section-radius, var(--radius-lg));
184
+ border-radius: 0;
185
+ width: 100%;
186
+ box-sizing: border-box;
217
187
  }
218
188
 
219
189
  :host([variant="small"]) {
@@ -225,7 +195,6 @@ export const accordionSection = css`
225
195
  --bd-acc-section-bg: var(--color-blue-50);
226
196
  }
227
197
 
228
- /* Light tinted section bgs (neutral-25, blue-50): footnote link */
229
198
  :host(:not([variant="small"])) .user-guide-link {
230
199
  color: var(--color-blue-700);
231
200
  }
@@ -258,7 +227,6 @@ export const accordionSection = css`
258
227
  gap: var(--spacing-12);
259
228
  font-family: Arial, Helvetica, sans-serif;
260
229
  font-size: var(--typography-fontSize-xs);
261
-
262
230
  }
263
231
 
264
232
  .user-guide-link a:focus-visible {
@@ -273,4 +241,4 @@ export const accordionSection = css`
273
241
  height: var(--dimension-16px);
274
242
  object-fit: contain;
275
243
  }
276
- `;
244
+ `;