Skip to content

Conversation

@adolgachev
Copy link
Contributor

No description provided.

@adolgachev adolgachev marked this pull request as ready for review October 30, 2025 19:10
@adolgachev adolgachev requested a review from a team as a code owner October 30, 2025 19:10
@adolgachev adolgachev requested review from ok7sai and wagnermaciel and removed request for a team October 30, 2025 19:10
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Oct 30, 2025
@adolgachev adolgachev changed the title feat(aria/multi): Add accessors for pattern properties refactor(aria/multi): Add accessors for pattern properties Oct 31, 2025
@adolgachev adolgachev force-pushed the aria-props branch 4 times, most recently from 181fcb8 to fd799bd Compare November 3, 2025 21:24
@adolgachev adolgachev added target: rc This PR is targeted for the next release-candidate merge: preserve commits When the PR is merged, a rebase and merge should be performed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 4, 2025
@adolgachev adolgachev force-pushed the aria-props branch 4 times, most recently from 14aafc4 to caa13b8 Compare November 4, 2025 21:51
@adolgachev adolgachev removed the detected: feature PR contains a feature commit label Nov 4, 2025
readonly colWrap = input<'continuous' | 'loop' | 'nowrap'>('loop');

/** The currently active cell. */
readonly activeCell = computed(() => this._pattern.activeCell());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

activeCell is the ui pattern type, so we might want to hide it.

readonly isFocused = computed(() => this._pattern.isFocused());

/** Whether to pause grid navigation. */
readonly pauseNavigation = computed(() => this._pattern.pauseNavigation());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is implementation detail so let's not expose this.

/** Whether the widget is currently active (focused). */
readonly active = computed(() => this._pattern.active());
/** Whether the widget is currently the active one (focused). */
readonly active = computed(() => this._pattern.active);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to return a signal function which I am not sure if it's intended.

readonly isFocused = computed(() => this._pattern.isFocused());

/** Whether the menu has received focus. */
readonly hasBeenFocused = computed(() => this._pattern.hasBeenFocused());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is implementation detail for setting default state that I don't think developers should rely on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer merge: preserve commits When the PR is merged, a rebase and merge should be performed target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants