+
Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

clintcs
Copy link
Collaborator

@clintcs clintcs commented Aug 15, 2025

🚀 Description

Patch

Menu's active Option is now visually active the moment Menu is opened instead of after a short delay.

📋 Checklist

  • I have followed the Contributing Guidelines.
  • I have added tests to cover new or updated functionality.
  • I have added or updated Storybook stories.
  • I have localized new strings.
  • I have followed the ARIA Authoring Practices Guide or met with the Accessibility Team.
  • I have included a changeset.
  • I have scheduled a design review.
  • I have reviewed the Storybook and Visual Test Report links below.

🔬 Manual Testing

  1. Navigate to Menu in Storybook.
  2. Open Menu.
  3. Verify the first option is immediately active visually.

Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: 412b02c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@crowdstrike/glide-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

// But two open sub-Menus doesn't make sense. So Menu will close one of them in
// `firstUpdated()`. And it does that by setting `open` to `false`, which results
// in a `#hide()` call. So `#hide()` will be called immediately after `#show()`.
await this.#activeOption?.updateComplete;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The fix.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the comments as well! 🎉

@clintcs clintcs force-pushed the menu-active-option-on-open-bugfix branch 7 times, most recently from cbd1e24 to c93f1c1 Compare August 18, 2025 14:14
// This is a test to see if disabling Hot Module Reloading eliminates the Vite
// cache misses we've been seeing in CI with Playwright tests. We'll need to keep
// this in place for a while to see if it solves the problem.
noDiscovery: Boolean(process.env.CI),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@clintcs clintcs force-pushed the menu-active-option-on-open-bugfix branch 3 times, most recently from 1d354ed to 46822b9 Compare August 18, 2025 14:33
@clintcs clintcs force-pushed the menu-active-option-on-open-bugfix branch from 46822b9 to 412b02c Compare August 18, 2025 14:39
@clintcs clintcs marked this pull request as ready for review August 18, 2025 14:45
// But two open sub-Menus doesn't make sense. So Menu will close one of them in
// `firstUpdated()`. And it does that by setting `open` to `false`, which results
// in a `#hide()` call. So `#hide()` will be called immediately after `#show()`.
await this.#activeOption?.updateComplete;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the comments as well! 🎉

@clintcs clintcs added this pull request to the merge queue Aug 18, 2025
uses: actions/download-artifact@v4
with:
name: storybook
path: ./dist/storybook
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unused.

Merged via the queue into main with commit ab2925b Aug 18, 2025
32 checks passed
@clintcs clintcs deleted the menu-active-option-on-open-bugfix branch August 18, 2025 16:33
@github-actions github-actions bot mentioned this pull request Aug 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载