Skip to content

Conversation

@ok7sai
Copy link
Member

@ok7sai ok7sai commented Nov 12, 2025

  • Tabs still uses selectedTab input to change expanded tab/tab panel since it's always single expanded.
  • For Accordion expanded state is moved from Accordion Group ([(expandedPanels)]) to each Accordion Trigger ([(expanded)]).
  • Tree now supports expanding a tree item by setting expanded state on each item.
  • Updated examples as well.

@ok7sai ok7sai requested a review from wagnermaciel November 12, 2025 09:57
@ok7sai ok7sai requested a review from a team as a code owner November 12, 2025 09:57
@ok7sai ok7sai requested review from crisbeto and removed request for a team November 12, 2025 09:57
@ok7sai ok7sai force-pushed the ng-aria-expansion branch 3 times, most recently from 1f63c5c to 706d912 Compare November 12, 2025 11:36
@ok7sai ok7sai requested a review from andrewseguin November 12, 2025 18:29
@ok7sai ok7sai force-pushed the ng-aria-expansion branch 2 times, most recently from 50b1eef to a8951f5 Compare November 12, 2025 18:59
@ok7sai ok7sai added the dev-app preview When applied, previews of the dev-app are deployed to Firebase label Nov 12, 2025
@github-actions
Copy link

github-actions bot commented Nov 12, 2025

Deployed dev-app for b0d751a to: https://ng-dev-previews-comp--pr-angular-components-32314-dev-n3u39pya.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

Comment on lines +196 to +231

afterRenderEffect(() => {
const tab = this._pattern.selectedTab();
if (tab) {
this.selectedTab.set(tab.value());
}
});

afterRenderEffect(() => {
const value = this.selectedTab();
if (value) {
this._pattern.open(value);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Make the individual tabs the source of truth for this. We can still expose a readonly selectedTab at the top level

Copy link
Contributor

@wagnermaciel wagnermaciel left a comment

Choose a reason for hiding this comment

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

LGTM with one comment

@ok7sai ok7sai added action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate labels Nov 12, 2025
@ok7sai ok7sai merged commit 3b39d89 into angular:main Nov 12, 2025
20 of 22 checks passed
@ok7sai
Copy link
Member Author

ok7sai commented Nov 12, 2025

This PR was merged into the repository. The changes were merged into the following branches:

ok7sai added a commit that referenced this pull request Nov 12, 2025
* refactor(multiple): move expanded state to each expansion item

* refactor: remove tree declaration merging

* refactor: fix tests

(cherry picked from commit 3b39d89)
@ok7sai ok7sai deleted the ng-aria-expansion branch November 12, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker dev-app preview When applied, previews of the dev-app are deployed to Firebase target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants