Skip to content

Conversation

@langleyd
Copy link
Member

@langleyd langleyd commented Sep 3, 2025

If props are not Omitted overwriting them should work for UnstyledButton. For the new chat filters on the new room list in element web we are using listbox/option as roles, so we need to be able to override the role of the button.

@langleyd langleyd requested a review from a team as a code owner September 3, 2025 16:34
@langleyd langleyd requested review from dbkr and t3chguy and removed request for a team September 3, 2025 16:34
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Given the Prop types of this component, shouldn't the same be the case for the other props too? Either they should work or they should be Omited from the type

@langleyd langleyd changed the title Allow props override the button role on UnstyledButton If props are not Omitted overwriting them should work for UnstyledButton Sep 4, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 4, 2025

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 18f42ad
Status: ✅  Deploy successful!
Preview URL: https://3b09134e.compound-web.pages.dev
Branch Preview URL: https://langleyd-allowoverrideofbutt.compound-web.pages.dev

View logs

@langleyd langleyd requested a review from t3chguy September 4, 2025 12:21
@langleyd langleyd merged commit 2bc649e into main Sep 4, 2025
8 checks passed
@langleyd langleyd changed the title If props are not Omitted overwriting them should work for UnstyledButton If props are not omitted overwriting them should work for UnstyledButton Sep 4, 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.

3 participants