Skip to content

Conversation

@shleewhite
Copy link
Contributor

@shleewhite shleewhite commented Jul 16, 2025

📌 Summary

If merged, this PR would return a close callback to the yielded blocks in AppHeader.

It also fixes a small bug @MelSumner found where the accessible name for the nav element includes the word navigation, which makes screen readers announce "Application local navigation navigation"

To see the callbacks working, test the demos on the AppHeader showcase page.

  1. Go to the small viewport example
  2. Open the actions menu
  3. Click one of the options in the org picker or region picker
  4. See that the actions menu is now closed

🔗 External links

Jira ticket: HDS-5156
Figma file: [if it applies]


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

@vercel
Copy link

vercel bot commented Jul 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Jul 22, 2025 1:32pm
hds-website ✅ Ready (Inspect) Visit Preview Jul 22, 2025 1:32pm

<HdsDropdown @enableCollisionDetection={{true}} as |dd|>
<dd.ToggleButton @text={{this.orgPickerLabel}} @icon="org" />
<dd.Checkmark>
<dd.Checkmark {{on "click" actions.close}}>
Copy link
Contributor

Choose a reason for hiding this comment

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

This implementation is nice. Seems very simple & convenient for consumers to use.

Copy link
Contributor

@KristinLBradley KristinLBradley left a comment

Choose a reason for hiding this comment

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

Very nicely done! Simple & elegant.

@shleewhite shleewhite requested a review from a team July 21, 2025 19:10
didoo
didoo previously approved these changes Jul 22, 2025
Copy link
Contributor

@didoo didoo left a comment

Choose a reason for hiding this comment

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

Left a couple of suggestions, for your consideration

});

// Close callback
test('it should hide the actions when the "close" function is called from global actions', async function (assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

[suggestion] for simplicity, and avoid too much duplication, you could consider merging the two set of tests (for global and utility actions), for example by opening the menu, closing it via close in global action, then re-open it again, and the close it again via close in utility action

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I have pushed a fix to consolidate the tests.

@shleewhite shleewhite merged commit dd4d37e into main Jul 22, 2025
16 checks passed
@shleewhite shleewhite deleted the hds-5156/enterprise-nav-fixes branch July 22, 2025 18:59
@hashibot-hds hashibot-hds mentioned this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants