@repobit/dex-system-design 2.1.0 → 2.1.1

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,15 @@
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
+ ## [2.1.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.1.0...@repobit/dex-system-design@2.1.1) (2026-10-19)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-28949:** bd-features inside tabs lands on the other sections' edges
11
+ * **DEX-28949:** bd-p's flow margin can be turned off, and is at the end of a card
12
+ * **DEX-28949:** the terms-of-use accordion sits in the page column again
13
+
14
+
6
15
  ## [2.1.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@2.0.1...@repobit/dex-system-design@2.1.0) (2026-10-16)
7
16
 
8
17
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
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",
@@ -179,5 +179,5 @@
179
179
  "volta": {
180
180
  "node": "24.14.0"
181
181
  },
182
- "gitHead": "2b14e5a236f0cf4b62b2c0decbb0a1e2721f8ef6"
182
+ "gitHead": "543f46ab9cfdf4943d3c1b9839eb414fd12bd835"
183
183
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifestVersion": 1,
3
3
  "package": "@repobit/dex-system-design",
4
- "packageVersion": "2.1.0",
4
+ "packageVersion": "2.1.1",
5
5
  "generatedFrom": [
6
6
  "package.json exports",
7
7
  "Lit static properties",
@@ -88,7 +88,7 @@ class BdAccordionBg extends LitElement {
88
88
  _renderTerms() {
89
89
  return html`
90
90
  <div class="bd-accordion-section-container">
91
- <div class="bd-accordion-section-inner">
91
+ <div class="bd-ensemble bd-accordion-section-inner">
92
92
  ${this.title
93
93
  ? html`<bd-h as="h6" paddingBottom="32" fontWeight="bold" class="section-title">${this.title}</bd-h>`
94
94
  : ""}
@@ -215,6 +215,12 @@ export default css`
215
215
  width: 100%;
216
216
  }
217
217
 
218
+ /* The card's own padding ends it; a closing paragraph's flow margin would
219
+ add 16px inside that padding. Paragraphs before it keep theirs. */
220
+ .bd-card-content-wrapper ::slotted(bd-p:last-child) {
221
+ --bd-paragraph-margin-bottom: 0;
222
+ }
223
+
218
224
  .bd-card-cta-wrapper {
219
225
  margin-top: var(--spacing-16);
220
226
  padding-top: var(--spacing-8);
@@ -19,7 +19,11 @@ export default css`
19
19
  padding-top: var(--spacing-64);
20
20
  /* A host that nests the section (bd-tabs) can shorten the closing pad. */
21
21
  padding-bottom: var(--bd-features-padding-bottom, var(--spacing-64));
22
- padding-inline: var(--layout-ensemble-inline-padding);
22
+ /* No padding-inline here: the gutter is the column's, inside the shadow
23
+ root. A host pad was 24px on top of it standing alone, and inside
24
+ bd-tabs -- where the nested column collapses to its parent's edges --
25
+ it was the one inset left, putting the features 24px inside every
26
+ other section's edge. */
23
27
  }
24
28
 
25
29
  /* Columns grid: its own measure -- N columns of 400 -- centred inside the column */
@@ -268,21 +268,20 @@ export default css`
268
268
  and the element finally says what it is. */
269
269
 
270
270
  /* The one thing this rule still has to do, and it is not typography. bd-p's
271
- inner <p> carries margin-bottom: var(--spacing-16) for paragraph flow, and
272
- a bd-p in a flex row is a flex item, so it establishes a block formatting
273
- context and that margin cannot collapse through the host -- it is trapped
274
- inside the host's box. Measured: the host renders 37px where its text is
275
- 21px, which grew this zone from 28px to 37px and shifted the struck price
276
- 6px against the discount badge beside it.
271
+ inner <p> carries a 16px flow margin, and a bd-p in a flex row is a flex
272
+ item, so it establishes a block formatting context and that margin cannot
273
+ collapse through the host -- it is trapped inside the host's box.
274
+ Measured: the host renders 37px where its text is 21px, which grew this
275
+ zone from 28px to 37px and shifted the struck price 6px against the
276
+ discount badge beside it.
277
277
  .
278
278
  The pricing cards do not show this because both of their siblings are bd-p
279
279
  and the offset cancels; here the badge is a bare span, so it does not.
280
- bd-p exposes padding but no margin, so the margin cannot be reached from
281
- outside -- this cancels it with the same token it is set from, which keeps
282
- the two in step if the token moves. An atom-level way to say "no flow
283
- margin" would be better and is not this change's to add. */
280
+ This used to cancel the margin with a negative one, because the <p> could
281
+ not be reached from outside; the atom now takes
282
+ --bd-paragraph-margin-bottom, so the margin is simply turned off. */
284
283
  .original-price {
285
- margin-bottom: calc(-1 * var(--spacing-16));
284
+ --bd-paragraph-margin-bottom: 0;
286
285
  /* text/muted, which is what Header / v2 gives the struck price. bd-p's own
287
286
  :host sets text/primary; colour on the host is LIVE (see the note on
288
287
  .bd-description), so this reaches it. A former price is the one number
@@ -369,25 +368,17 @@ export default css`
369
368
  display: block;
370
369
  /* the actions frame's gap, 8 -- down from 16. */
371
370
  margin-top: var(--spacing-8);
372
- /* A NEGATIVE 16, not 0. Setting the host's margin to zero was not enough
373
- and measuring showed it: the two lines still sat 16px apart. bd-p's
374
- inner <p> carries margin-bottom: var(--spacing-16) for paragraph flow,
375
- the host has no padding or border to stop it, so it collapses straight
376
- through the host's bottom edge -- a zero on the host cancels the host's
377
- own margin and leaves the atom's untouched.
378
- .
379
- Same cancellation, same reason and the same token as .original-price
380
- above, which hit this in a flex row where the margin could not collapse
381
- at all. bd-p exposes padding but no margin, so there is no way to reach
382
- it from outside; using the same token it is set from keeps the two in
383
- step if that token moves. An atom-level "no flow margin" would be better
384
- and is not this change's to add.
371
+ /* The atom's flow margin, off. Setting the host's margin to zero was never
372
+ enough: bd-p's inner <p> carries a 16px margin that collapses straight
373
+ through the host's bottom edge, and the two lines still sat 16px apart.
374
+ This cancelled it with a negative 16 until the atom took
375
+ --bd-paragraph-margin-bottom.
385
376
  .
386
377
  Zero is right because the design has these as two consecutive lines of
387
378
  ONE paragraph -- Header / v2 draws a single 12/1.45 text node of two
388
379
  lines -- rather than two blocks with air between them. Measured after:
389
380
  8px from the CTA row, 0 between the lines. */
390
- margin-bottom: calc(-1 * var(--spacing-16));
381
+ --bd-paragraph-margin-bottom: 0;
391
382
  color: var(--color-text-muted);
392
383
  }
393
384
  .bd-header-image-wrapper {
@@ -520,10 +511,9 @@ export default css`
520
511
  .bd-disclaimer-bottom {
521
512
  display: block;
522
513
  color: var(--color-text-muted);
523
- /* the same cancellation as the rule above, for the same reason -- this is
524
- the last block in the column, so the atom's trailing flow margin was
514
+ /* the last block in the column, so the atom's trailing flow margin was
525
515
  adding 16px inside the content frame's own 24px bottom padding. */
526
- margin-bottom: calc(-1 * var(--spacing-16));
516
+ --bd-paragraph-margin-bottom: 0;
527
517
  }
528
518
 
529
519
  /* A "bd-header a" rule stood here and could never match. It is the bare
@@ -17,7 +17,18 @@ export default css`
17
17
  all: unset;
18
18
  display: block;
19
19
  font-family: var(--typography-body-regular-fontFamily);
20
- margin-bottom: var(--spacing-16);
20
+ /* The flow margin between consecutive paragraphs, and the switch to turn
21
+ it off: --bd-paragraph-margin-bottom: 0 on the host or any ancestor.
22
+ It inherits into this shadow root, which the margin itself never did --
23
+ the <p> is unreachable from outside, so a paragraph that ends a card or
24
+ a column carried 16px nobody could remove, and the header cancelled it
25
+ three times with a negative margin.
26
+
27
+ It was a no-op until 0.26.0: it read --spacing-md, which no longer
28
+ existed, so every page built on 0.25 was laid out with zero here. The
29
+ rename to --spacing-16 made it live, which is how the step cards on
30
+ security-for-creators gained 16px under each description. */
31
+ margin-bottom: var(--bd-paragraph-margin-bottom, var(--spacing-16));
21
32
  }
22
33
 
23
34
  /* === Font Size Variants === */
@@ -1715,10 +1715,9 @@
1715
1715
  above (--grid-container-max-* with --grid-padding-*), which is what
1716
1716
  Foundations/Grid System documented and nothing had built. A width token
1717
1717
  here is how six ensembles came to hold one literal each and seven other
1718
- modules a different one. This padding step stays because bd-features
1719
- reads it for its inline padding; the blog declares its own copy and
1720
- does not read this one. */
1721
- --layout-ensemble-inline-padding: var(--spacing-24);
1718
+ modules a different one. --layout-ensemble-inline-padding went the
1719
+ same way once bd-features, its last reader, stopped padding its host;
1720
+ the blog declares its own copy. */
1722
1721
 
1723
1722
 
1724
1723
  }
@@ -1728,10 +1728,9 @@ const declarations = `
1728
1728
  above (--grid-container-max-* with --grid-padding-*), which is what
1729
1729
  Foundations/Grid System documented and nothing had built. A width token
1730
1730
  here is how six ensembles came to hold one literal each and seven other
1731
- modules a different one. This padding step stays because bd-features
1732
- reads it for its inline padding; the blog declares its own copy and
1733
- does not read this one. */
1734
- --layout-ensemble-inline-padding: var(--spacing-24);
1731
+ modules a different one. --layout-ensemble-inline-padding went the
1732
+ same way once bd-features, its last reader, stopped padding its host;
1733
+ the blog declares its own copy. */
1735
1734
 
1736
1735
  `;
1737
1736