Skip to content

feat(design): add aria-controls support to DaffMenuComponent#4315

Merged
damienwebdev merged 3 commits intograycoreio:developfrom
fiona-cai:feat/aria-controls
Apr 17, 2026
Merged

feat(design): add aria-controls support to DaffMenuComponent#4315
damienwebdev merged 3 commits intograycoreio:developfrom
fiona-cai:feat/aria-controls

Conversation

@fiona-cai
Copy link
Copy Markdown
Contributor

@fiona-cai fiona-cai commented Feb 2, 2026

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Fixes: #4159

New behavior

  • Menu activator reserves unique menu id on init, which it uses for its aria-controls
  • When menu is opened, the menu activator passes the menu id to the menu component through injection
  • Menu IDs are unique because all menu activators access the same instance of daffMenuUniqueId
  • aria-controls of menu activator always matches id of menu component

Breaking change?

  • Yes
  • No

Additional context

@fiona-cai fiona-cai requested a review from a team as a code owner February 2, 2026 16:21
@xelaint xelaint self-requested a review February 2, 2026 16:24
@xelaint xelaint added package: design @daffodil/design status: pending review This PR is awaiting review or response from a reviewer before the author can proceed. labels Feb 2, 2026
@xelaint xelaint changed the title feat(design/menu): add aria-controls support to DaffMenuComponent feat(design): add aria-controls support to DaffMenuComponent Feb 2, 2026
xelaint
xelaint previously requested changes Feb 2, 2026
Copy link
Copy Markdown
Member

@xelaint xelaint left a comment

Choose a reason for hiding this comment

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

@fiona-cai
Copy link
Copy Markdown
Contributor Author

fix(design): resolve spec failures in textarea, tree, and progress-bar should be moved to a separate PR

is there a current issue open for it?

@xelaint
Copy link
Copy Markdown
Member

xelaint commented Feb 3, 2026

fix(design): resolve spec failures in textarea, tree, and progress-bar should be moved to a separate PR

is there a current issue open for it?

#4317

I created the issue since the updates are valid, but these tests don't actually fail on my end since the tests itself don't rely on the missing imports. Are they actually causing a fail on your end?

@fiona-cai
Copy link
Copy Markdown
Contributor Author

yeah, they do

@xelaint
Copy link
Copy Markdown
Member

xelaint commented Feb 3, 2026

yeah, they do

okay that's interesting since the CI pipeline passes

Comment thread libs/design/menu/src/menu/menu.component.ts Outdated
Comment thread libs/design/menu/src/menu-activator/menu-activator.component.ts Outdated
@damienwebdev damienwebdev requested a review from a team as a code owner April 17, 2026 15:16
Co-Authored-By: Joanna Lau <118241363+joannalauu@users.noreply.github.com>
Co-Authored-By: Fiona Cai <69484076+fiona-cai@users.noreply.github.com>
Copy link
Copy Markdown
Member

@damienwebdev damienwebdev left a comment

Choose a reason for hiding this comment

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

lgtm

@damienwebdev damienwebdev merged commit daf9a0a into graycoreio:develop Apr 17, 2026
31 of 39 checks passed
@damienwebdev
Copy link
Copy Markdown
Member

Many thanks @fiona-cai -- apologies for the slow review on this! I'm temporally challenged these days.

@gray-bot gray-bot mentioned this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: design @daffodil/design status: pending review This PR is awaiting review or response from a reviewer before the author can proceed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add aria-controls support to DaffMenuComponent

3 participants