tandd-ui 0.2.2 → 0.2.3

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3 (2026-11-14)
4
+
5
+ ### Fixed
6
+
7
+ - **DTTable and DTDataTable scrolling:** a table with a scroll height (`max-height`, `height`, `virtual`, `body-scroll`) no longer traps the page. Once the table reaches its top or bottom, the wheel or a touch swipe scrolls the page, as any scroll box does. Only sideways scrolling stays inside the table, so a swipe on a wide table does not trigger the browser's back gesture.
8
+
3
9
  ## 0.2.2 (2026-11-12)
4
10
 
5
11
  ### Changed
package/dist/tandd-ui.css CHANGED
@@ -10361,7 +10361,7 @@ button.dt-stepper__header[aria-disabled=true] {
10361
10361
  width: 100%;
10362
10362
  max-height: var(--dt-table-max-height, none);
10363
10363
  overflow: auto;
10364
- overscroll-behavior: contain;
10364
+ overscroll-behavior-x: contain;
10365
10365
  border: 1px solid var(--dt-color-border);
10366
10366
  border-radius: var(--dt-radius-md);
10367
10367
  background: var(--dt-color-surface);
@@ -10690,7 +10690,7 @@ span.dt-border-beam {
10690
10690
 
10691
10691
  .dt-data-table__wrap {
10692
10692
  max-width: 100%;
10693
- overscroll-behavior: contain;
10693
+ overscroll-behavior-x: contain;
10694
10694
  }
10695
10695
 
10696
10696
  .dt-data-table__caption,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tandd-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Vue 3 component library from the TanDD UI design reference: light and dark themes, localization, and accessible components.",
5
5
  "license": "MIT",
6
6
  "author": "TanDD (https://tandd.dev)",
@@ -19,7 +19,8 @@
19
19
  // The scroll box: wide tables scroll inside it, never the page.
20
20
  .dt-data-table__wrap {
21
21
  max-width: 100%;
22
- overscroll-behavior: contain;
22
+ // As DTTable: vertical scroll chains to the page at the table's edges; only sideways is contained.
23
+ overscroll-behavior-x: contain;
23
24
  }
24
25
 
25
26
  .dt-data-table__caption,
@@ -4,7 +4,12 @@
4
4
  width: 100%;
5
5
  max-height: var(--dt-table-max-height, none);
6
6
  overflow: auto;
7
- overscroll-behavior: contain;
7
+ // Vertical scroll chains to the page once the table reaches its top or bottom, as any scroll box
8
+ // does: a table taller than the screen must never trap the wheel or a touch swipe (user report
9
+ // 2026-11-14, "khi dài thì chặn scroll"). `contain` was set here and stopped the page. Only the
10
+ // horizontal axis is contained, so a sideways swipe on a wide table does not trigger the browser's
11
+ // back/forward gesture.
12
+ overscroll-behavior-x: contain;
8
13
  border: 1px solid var(--dt-color-border);
9
14
  border-radius: var(--dt-radius-md);
10
15
  background: var(--dt-color-surface);