Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add radio menu item #320

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

florianduros
Copy link
Member

@florianduros florianduros commented Feb 21, 2025

Radio menu item in figma

Implementation close to the CheckboxMenuItem

@florianduros florianduros marked this pull request as ready for review February 26, 2025 10:56
@florianduros florianduros requested a review from a team as a code owner February 26, 2025 10:56
@florianduros florianduros requested review from dbkr and t3chguy and removed request for a team February 26, 2025 10:56
@t3chguy
Copy link
Member

t3chguy commented Feb 26, 2025

@florianduros any idea why there is no cloudflare preview?

@florianduros
Copy link
Member Author

Hmm strange, I'll rebase on main to see if it's triggering a preview

@florianduros florianduros force-pushed the florianduros/radio-menu-item branch from cc1ee91 to fefad03 Compare February 26, 2025 11:14
Copy link

cloudflare-workers-and-pages bot commented Feb 26, 2025

Deploying compound-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: fefad03
Status: ✅  Deploy successful!
Preview URL: https://7889a80a.compound-web.pages.dev
Branch Preview URL: https://florianduros-radio-menu-item.compound-web.pages.dev

View logs


type Props = Omit<
React.ComponentProps<typeof RadioMenuItemComponent>,
"Icon" | "label" | "checked" | "onSelect" | "name"
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove "Icon"

@t3chguy
Copy link
Member

t3chguy commented Feb 26, 2025

This looks to not follow best wai-aria practices where arrow keys do not change the radio selection, only space/enter does https://ariakit.org/examples/menu-item-radio - this may just be a symptom of the Story. Could you update the story to match the best practice so that we can confirm the component can be used to achieve this

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