Skip to content

Conversation

@bryceosterhaus
Copy link
Member

@bryceosterhaus bryceosterhaus commented Oct 16, 2025

This is needed for the dxp migration since dxp uses v18 react types. Lets see what CI says...

Also, we don't necessarily need to merge this here. I can just copy/paste these changes to the dxp migration PR

@vercel
Copy link

vercel bot commented Oct 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clayui.com Ready Ready Preview Comment Oct 16, 2025 7:47am
storybook.clayui.com Ready Ready Preview Comment Oct 16, 2025 7:47am

@pat270
Copy link
Member

pat270 commented Oct 22, 2025

@bryceosterhaus @ethib137 This LGTM. Let me know if I shouldn't merge it.

Copy link
Member

@ethib137 ethib137 left a comment

Choose a reason for hiding this comment

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

Hey @bryceosterhaus there are a lot of changes that appear to be more than just changing types. Maybe we should have a call to go over briefly what these changes are and why they are necessary?

> {
'aria-label'?: string;

'aria-labelledby'?: string;
Copy link
Member

Choose a reason for hiding this comment

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

The old type looked like it was requiring either aria-labelledby or aria-label to be included while also not allowing both to be added at the same time. This doesn't look like this will have the same behavior.

const hasItems = (children?: React.ReactNode) => {
if (!children) {
const hasItems = (children?: React.ReactNode | Function) => {
if (!children || typeof children === 'function') {
Copy link
Member

Choose a reason for hiding this comment

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

What required this change?

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.

3 participants