@inchurch/matcha-theme 22.5.4 → 22.6.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.
@@ -58,6 +58,24 @@
58
58
 
59
59
  // ── Layout ──────────────────────────────────────────────────────────────────
60
60
 
61
+ // ── Host (tag <matcha-paginator>) ────────────────────────────────────────────
62
+ // Bug real (achado no control-panel-v2, Visitantes em modo cards): sem isso, a tag
63
+ // <matcha-paginator> não tem NENHUM display próprio — fica com o default do browser pra
64
+ // elemento desconhecido (`display: inline`), fora do único contexto que já forçava block
65
+ // mais abaixo neste arquivo (`& + matcha-paginator`, só quando vem logo após um <matcha-table>
66
+ // irmão). Host inline: `border-radius`/`overflow` que o consumer aplica via utility class no
67
+ // host não têm efeito nenhum — quem pinta o fundo é o `.matcha-paginator` INTERNO (a classe
68
+ // logo abaixo, um elemento diferente do host), e overflow é no-op em elemento inline
69
+ // não-substituído (spec CSS). NÃO colocar isso em `:host{}` no paginator.component.scss —
70
+ // o componente usa `ViewEncapsulation.None` e `:host` não é aplicado nesse modo neste build
71
+ // (confirmado: mesma lacuna existe hoje em table.component.scss, mascarada lá porque
72
+ // <table> já é block-ish por natureza). Selector de tag direto, igual todo o resto deste
73
+ // arquivo, é o que realmente funciona pra esse encapsulation.
74
+ matcha-paginator {
75
+ display: block;
76
+ overflow: hidden;
77
+ }
78
+
61
79
  // sr-only — região live dedicada pra anunciar mudança de página (WAI-ARIA APG).
62
80
  // Fora do .matcha-paginator pra também funcionar quando paginator estiver hidden
63
81
  // (logo após hide-on-single-page transition).
@@ -12,7 +12,7 @@
12
12
  //
13
13
  // Companion directives (a11y automática):
14
14
  // [matcha-table-sortable] em <th> — aria-sort + tabindex + keyboard
15
- // [matcha-table-clickable] em <tr> — tabindex + Enter/Space + (rowClick)
15
+ // [rowClick] em <tr> só o binding já ativa tudo (tabindex + Enter/Space + hover accent)
16
16
  //
17
17
  // Helpers CSS-only:
18
18
  // td.numeric → tabular-nums
@@ -336,8 +336,8 @@
336
336
  margin-top: 0;
337
337
  }
338
338
 
339
- // ── Row clickable ([matcha-table-clickable] directive seta tabindex) ─
340
- tbody tr.is-clickable {
339
+ // ── Row clickable ([rowClick] directive só o binding já ativa tudo) ─
340
+ tbody tr.matcha-row-clickable {
341
341
  cursor: pointer;
342
342
 
343
343
  &:hover td {
@@ -370,23 +370,17 @@
370
370
  }
371
371
 
372
372
  // Stripe-aware hover: row PAR ganha alpha mais forte pra preservar stripe.
373
- &[striped] tbody tr:where(:nth-child(even)).is-clickable:hover td,
374
- matcha-table[striped] & tbody tr:where(:nth-child(even)).is-clickable:hover td,
373
+ &[striped] tbody tr:where(:nth-child(even)).matcha-row-clickable:hover td,
374
+ matcha-table[striped] & tbody tr:where(:nth-child(even)).matcha-row-clickable:hover td,
375
375
  &[striped][hover] tbody tr:where(:nth-child(even)):hover td,
376
376
  matcha-table[striped][hover] & tbody tr:where(:nth-child(even)):hover td {
377
377
  --matcha-table-cell-bg: var(--matcha-table-row-bg-hover-striped);
378
378
  }
379
379
 
380
- // Variante de hover accent (input `rowHover="accent"` atributo host
381
- // `data-row-hover="accent"`). Rebinda a var de hover no PRÓPRIO `<table>`,
382
- // com especificidade acima do default dispensa o consumer de furar o
383
- // encapsulamento com `::ng-deep`. Substitui o override manual repetido em
384
- // members/visitors/history/datas-comemorativas.
385
- &[data-row-hover="accent"],
386
- matcha-table[data-row-hover="accent"] & {
387
- --matcha-table-row-bg-hover: var(--matcha-color-accent-surface-hover);
388
- --matcha-table-row-bg-hover-striped: var(--matcha-color-accent-surface-hover);
389
- }
380
+ // Hover accent de linha clicável: a diretiva [rowClick] sobrescreve
381
+ // --matcha-table-row-bg-hover(-striped) inline no próprio <tr> (ver
382
+ // table-clickable-row.directive.ts)nenhuma regra de tema necessária
383
+ // aqui, o estilo inline vence qualquer especificidade.
390
384
 
391
385
  tbody tr.is-selected td {
392
386
  --matcha-table-cell-bg: var(--matcha-table-row-bg-selected);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inchurch/matcha-theme",
3
- "version": "22.5.4",
3
+ "version": "22.6.1",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {