Skip to content

Commit 5963c32

Browse files
committed
refactor: data-active-control attribute
1 parent 165e601 commit 5963c32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/aria/grid/grid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export class GridCell {
378378
host: {
379379
'class': 'grid-cell-widget',
380380
'[attr.data-active]': '_pattern.active()',
381-
'[attr.data-widget-activated]': 'isActivated()',
381+
'[attr.data-active-control]': 'isActivated() ? "widget" : "cell"',
382382
'[tabindex]': '_tabIndex()',
383383
},
384384
})

src/components-examples/aria/grid/grid-common.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
outline-offset: 3px;
2727
}
2828

29-
.example-cell.example-cell.example-cell:has([data-widget-activated='true']) {
29+
.example-cell.example-cell.example-cell:has([data-active-control='widget']) {
3030
outline: 3px dashed var(--mat-sys-on-error-container);
3131
outline-offset: 3px;
3232
}

0 commit comments

Comments
 (0)