Skip to content

Commit 352e04a

Browse files
committed
refactor(aria/toolbar): Add accessors for pattern properties
1 parent 6bb65a6 commit 352e04a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aria/toolbar/toolbar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class Toolbar<V> {
168168
exportAs: 'ngToolbarWidget',
169169
host: {
170170
'class': 'ng-toolbar-widget',
171-
'[attr.data-active]': '_pattern.active()',
171+
'[attr.data-active]': 'active()',
172172
'[attr.tabindex]': '_pattern.tabIndex()',
173173
'[attr.inert]': 'hardDisabled() ? true : null',
174174
'[attr.disabled]': 'hardDisabled() ? true : null',
@@ -207,7 +207,7 @@ export class ToolbarWidget<V> implements OnInit, OnDestroy {
207207
/** The value associated with the widget. */
208208
readonly value = input.required<V>();
209209

210-
/** Whether the widget is currently active (focused). */
210+
/** Whether the widget is currently the active one (focused). */
211211
readonly active = computed(() => this._pattern.active());
212212

213213
/** Whether the widget is selected (only relevant in a selection group). */

0 commit comments

Comments
 (0)