@inchurch/matcha-theme 22.28.3 → 22.28.4

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.
@@ -251,6 +251,19 @@
251
251
  outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
252
252
  outline-offset: var(--matcha-state-focus-ring-offset, 2px);
253
253
  }
254
+
255
+ // Desabilitado — irmão do .matcha-nav-item--disabled (mesma dupla
256
+ // pointer-events/cursor aqui; a cor fica no mixin de tema). Cobre as 3 formas:
257
+ // o `disabled` nativo do <button>, o atributo em elemento que não é button
258
+ // (o slot aceita <a>) e o aria-disabled de quem precisa manter o foco.
259
+ // Sem isto, um módulo desabilitado renderiza IDÊNTICO ao habilitado e o
260
+ // usuário clica sem entender por que nada acontece.
261
+ &:disabled,
262
+ &[disabled],
263
+ &[aria-disabled="true"] {
264
+ cursor: default;
265
+ pointer-events: none;
266
+ }
254
267
  }
255
268
 
256
269
  // ── Nav Rail labeled (84px — nome do módulo embaixo do ícone) ───────────────
@@ -710,6 +723,19 @@
710
723
  font-weight: var(--matcha-weight-medium, 500);
711
724
  }
712
725
  }
726
+
727
+ // Desabilitado — mesmo token de cor do nav-item disabled, pra os dois
728
+ // estados lerem igual. Depois do bloco ativo de propósito: um módulo
729
+ // desabilitado não deve ficar com a cor de ativo.
730
+ &:disabled,
731
+ &[disabled],
732
+ &[aria-disabled="true"] {
733
+ color: var(--matcha-color-interaction-disabled-fg);
734
+
735
+ matcha-icon {
736
+ color: var(--matcha-color-interaction-disabled-fg);
737
+ }
738
+ }
713
739
  }
714
740
 
715
741
  .matcha-nav-rail__divider {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inchurch/matcha-theme",
3
- "version": "22.28.3",
3
+ "version": "22.28.4",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {