Skip to content

Conversation

@0xa3k5
Copy link

@0xa3k5 0xa3k5 commented Jan 28, 2026

Summary

replaces data-[disabled] with data-disabled to not have any unnecessary brackets on the markup 😅 super nit.


Note

Low Risk
Styling-only changes to how disabled state is expressed/selected; main risk is missed selector parity causing incorrect disabled visuals or pointer-events.

Overview
Standardizes disabled-state styling selectors from data-[disabled] / data-[disabled="true"] to data-disabled in Badge and code-group DropdownMenuItem.

Badge now omits the data-disabled attribute when not disabled (disabled || undefined) and updates related Tailwind selectors for cursor, colors, and icon styling to match the new attribute form.

Written by Cursor Bugbot for commit f1af41a. This will update automatically on new commits. Configure here.

@dks333 dks333 requested a review from pqoqubbw January 29, 2026 00:19
<Menu.Item
className={cn(
"group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2 py-1 text-sm outline-0 hover:bg-stone-950/[0.03] focus:bg-stone-950/5 data-[disabled]:pointer-events-none data-[disabled]:cursor-default data-[disabled]:opacity-50 dark:focus:bg-white/5 dark:hover:bg-white/[0.03]",
"group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2 py-1 text-sm outline-0 hover:bg-stone-950/[0.03] focus:bg-stone-950/5 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 dark:focus:bg-white/5 dark:hover:bg-white/[0.03]",
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please update these ones as well:

Image Image

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