@ai-matrx/design-system 0.61.13 → 0.61.14

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.61.14 — a page that scrolls down never hides an overflowing pill
4
+
5
+ - Pill guard: only a sideways TRACK (an ancestor that scrolls horizontally and not vertically)
6
+ exempts a pill from the overflow check. 0.61.12 exempted any ancestor with computed
7
+ `overflow-x: auto`, and a page body with `overflow-y: auto` computes that too — so no pill on a
8
+ scrolling page was ever judged (measured live on /education/overview). Guard case red on 0.61.13.
9
+
10
+ No consumer action.
11
+
3
12
  ## 0.61.13 — a pinned count badge is not an overflowing pill
4
13
 
5
14
  - Pill guard: a capsule positioned `absolute`/`fixed` (a count badge pinned to an icon's corner)
package/dist/index.cjs CHANGED
@@ -733,7 +733,7 @@ function findPillViolation(el, maxWidth = PILL_MAX_WIDTH_PX) {
733
733
  function overflowPast(el, rect, view) {
734
734
  for (let p = el.parentElement; p; p = p.parentElement) {
735
735
  const ox = view.getComputedStyle(p).overflowX;
736
- if (ox === "auto" || ox === "scroll") return null;
736
+ if ((ox === "auto" || ox === "scroll") && p.scrollWidth > p.clientWidth + 1 && p.scrollHeight <= p.clientHeight + 1) return null;
737
737
  }
738
738
  const pinned = ["absolute", "fixed"].includes(view.getComputedStyle(el).position);
739
739
  const parent = el.parentElement;