tosijs-ui 1.5.21 → 1.5.22

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.
@@ -75,7 +75,7 @@ export declare class TosiTable extends WebComponent {
75
75
  zIndex: string;
76
76
  background: string;
77
77
  };
78
- ':host .tr[aria-selected="true"] .td': {
78
+ ':host .tr[aria-selected] .td': {
79
79
  background: string;
80
80
  };
81
81
  ':host .td:focus, :host .th:focus': {
@@ -120,7 +120,8 @@ test('row selection: data model + aria-selected on row (incl. custom dataCell)',
120
120
  expect(table.selectedRows.length).toBe(2)
121
121
 
122
122
  // DOM: aria-selected lives on the row element. CSS targets
123
- // .tr[aria-selected="true"] .td to highlight cells.
123
+ // .tr[aria-selected] .td to highlight cells. The attribute is set via
124
+ // toggleAttribute, so its value is "" (presence-only) — match accordingly.
124
125
  const cells0 = table.getCells(items[0])
125
126
  const cells1 = table.getCells(items[1])
126
127
  expect(cells0.length).toBe(table.visibleColumns.length)
@@ -615,7 +616,7 @@ export class TosiTable extends WebComponent {
615
616
  zIndex: '3',
616
617
  background: varDefault.tosiTableHeaderBg(varDefault.tosiTableBg('var(--tosi-bg, #fff)')),
617
618
  },
618
- ':host .tr[aria-selected="true"] .td': {
619
+ ':host .tr[aria-selected] .td': {
619
620
  background: varDefault.tosiTableSelectedBg('var(--tosi-accent, #007AFF22)'),
620
621
  },
621
622
  ':host .td:focus, :host .th:focus': {