@miragon/slidev-validator 0.5.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miragon/slidev-validator",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "The Miragon Slidev deck validator: a configurable design-system linter (stable rule IDs, off/warn/error severities, extends/overrides/exceptions) shipped as a versioned CLI so central guardrail improvements reach decks over npm instead of a frozen copy.",
6
6
  "keywords": [
@@ -72,6 +72,8 @@ export function measureSafeArea({ n, overlaySel, canvas }) {
72
72
  const cs = getComputedStyle(el)
73
73
  if (cs.visibility === 'hidden' || cs.display === 'none' || parseFloat(cs.opacity) < 0.05) continue
74
74
  if (cs.position === 'fixed') continue // the overlays themselves / other chrome
75
+ if (cs.pointerEvents === 'none') continue
76
+ if (el.getAttribute('aria-hidden') === 'true' || el.closest('[aria-hidden="true"]')) continue
75
77
  const c = toCanvas(r)
76
78
  const nearBottom = c.bottom > canvas.height - 80
77
79
  const nearTop = c.top < 80