+
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 Oct 10, 2025

🚀 Description

  • Inlined Dropdown and Dropdown Option's icons.
  • Removed @final and assertSlot().
  • Removed slot comments: only used to populate the manifest.
  • Removed both components' version attribute: a Core-ism that requires some Vite configuration.
  • Removed implements FormControl from both components' classes.

A few things remain, which I left in case Dropdown's new owners want to continue to use them:

  • Both components' use of uniqueId().

  • Dropdown's use of onResize(), which is a convenient way to attach resize observers.

  • Uses of requestIdleCallback() in tests. requestIdleCallback() should probably be copied along with Dropdown so its tests remain relatively stable.

  • Uses of click() and hover()in tests. Those functions are a nice abstraction for testing clicks and hovers as a user would perform them. mouse.ts, where they're exported from, should probably be copied over.

  • Dropdown's visual tests, which run in Playwright and may or may not be desirable to copy over. Same for Dropdown's accessibility tests.

  • Uses of Shoelace's Localize.

Other than that, Dropdown's new owners will need to:

  • Do something with the localized strings.
  • Update import specifiers (import './checkbox.js'import '@crowdstrike/glide-core/checkbox.js').
  • Replace <glide-core-example-icon> references in Storybook with something else.
  • Figure out what to do with the expectWindowError() call in dropdown.test.basics.ts.

📋 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

Feel free to do a spotcheck locally of Dropdown's functionality, which I've done. But its tests should largely have us covered.

Copy link

changeset-bot bot commented Oct 10, 2025

⚠️ No Changeset found

Latest commit: ba0d66c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@clintcs clintcs changed the title Remove remaining core stuff from dropdown Remove remaining Core stuff from Dropdown Oct 10, 2025
@clintcs clintcs changed the title Remove remaining Core stuff from Dropdown Remove remaining Core stuff from Dropdown and Dropdown Option Oct 10, 2025
@clintcs clintcs force-pushed the remove-remaining-core-stuff-from-dropdown branch 4 times, most recently from 5170b09 to 7110038 Compare October 13, 2025 16:21
* @default undefined
*/
@property()
@property({ reflect: true })
Copy link
Collaborator Author

@clintcs clintcs Oct 13, 2025

Choose a reason for hiding this comment

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

Forgot to reflect split everywhere. I'll follow up and add reflect: true to our other components.

@clintcs clintcs force-pushed the remove-remaining-core-stuff-from-dropdown branch 2 times, most recently from f777a02 to d91511c Compare October 13, 2025 16:34
}

set split(split: 'left' | 'middle' | 'right' | undefined) {
this.#split = split;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Switched the order for coverage purposes. Ignores (c8 ignore start) don't work as reliably in Web Test Runner as they do Playwright.

@clintcs clintcs force-pushed the remove-remaining-core-stuff-from-dropdown branch from d91511c to 70e6a2b Compare October 13, 2025 16:38
@clintcs clintcs marked this pull request as ready for review October 13, 2025 16:38
@clintcs
Copy link
Collaborator Author

clintcs commented Oct 13, 2025

Just learned that Dropdown's new owner has a @required() decorator. So I'll push a commit adding it back.

}
.checked-icon-container {
--private-size: 1rem;
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.

@clintcs
Copy link
Collaborator Author

clintcs commented Oct 13, 2025

Just learned that Dropdown's new owner has a @required() decorator. So I'll push a commit adding it back.

ba0d66c

@clintcs clintcs added this pull request to the merge queue Oct 13, 2025
Merged via the queue into main with commit 0c6ebf9 Oct 13, 2025
@clintcs clintcs deleted the remove-remaining-core-stuff-from-dropdown branch October 13, 2025 19:45
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.

3 participants

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