+
Skip to content

Conversation

clintcs
Copy link
Collaborator

@clintcs clintcs commented Sep 18, 2025

🚀 Description

Patch

Select now supports slots in its Options component.

📋 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

A tough one to test manually. But you're welcome to manipulate Select's story locally.

Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: b672a6b

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

@clintcs clintcs force-pushed the add-select-options-slot-support branch from 18faa9c to e789f71 Compare September 18, 2025 16:49
@clintcs clintcs changed the title Add select options slot support Add Select Options slot support Sep 18, 2025
@clintcs clintcs force-pushed the add-select-options-slot-support branch from e789f71 to ca15de9 Compare September 19, 2025 14:56
}
},
);
});
Copy link
Collaborator Author

@clintcs clintcs Sep 19, 2025

Choose a reason for hiding this comment

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

I debated an abstraction for cases like this. But it's pretty simple as is. So I don't know what would be abstracted. We also only have a few instances of tests that test a component in another component.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this!

return firstAssignedElement instanceof Options
? firstAssignedElement
: null;
?.find((element): element is Options => element instanceof Options);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same logic as Menu here and above.

@clintcs clintcs force-pushed the add-select-options-slot-support branch 2 times, most recently from ce63c93 to 732140e Compare September 19, 2025 15:15
@CrowdStrike CrowdStrike deleted a comment from github-actions bot Sep 19, 2025
@CrowdStrike CrowdStrike deleted a comment from github-actions bot Sep 19, 2025
@CrowdStrike CrowdStrike deleted a comment from github-actions bot Sep 19, 2025
@CrowdStrike CrowdStrike deleted a comment from github-actions bot Sep 19, 2025
@clintcs clintcs force-pushed the add-select-options-slot-support branch from 732140e to b672a6b Compare September 19, 2025 15:30
@clintcs clintcs marked this pull request as ready for review September 19, 2025 15:40
}
},
);
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this!

@clintcs clintcs enabled auto-merge September 19, 2025 16:16
@clintcs clintcs disabled auto-merge September 19, 2025 16:16
@clintcs clintcs merged commit be849a4 into main Sep 19, 2025
21 checks passed
@clintcs clintcs deleted the add-select-options-slot-support branch September 19, 2025 16:16
@github-actions github-actions bot mentioned this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

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