Reproduction URL (Required)
https://play.tailwindcss.com/u2cuWzgQrC
What version of daisyUI are you using?
v5.6.7
Which browsers are you seeing the problem on?
All browsers
Describe your issue
PR #4432 updated the button component to support aria-disabled="true":
https://github.com/saadeghi/daisyui/blob/master/packages/daisyui/src/components/button.css#L359-L360
.btn-disabled,
.btn:is(:disabled, [disabled], [aria-disabled="true"]) {
The menu component wasn't updated to match. It only supports the .menu-disabled class:
https://github.com/saadeghi/daisyui/blob/master/packages/daisyui/src/components/menu.css#L129-L130
&.menu-disabled {
@apply text-base-content/20 pointer-events-none;
}
With buttons, I can write <button aria-disabled="true"> and get both the correct visual styling and the correct accessibility semantics in one attribute. With menu items, I have to add the .menu-disabled class for the visual styling and then separately manage the ARIA attribute myself to get the same result.
Menu items should support aria-disabled="true" the same way buttons do, so that a single attribute handles both concerns.
Reproduction URL (Required)
https://play.tailwindcss.com/u2cuWzgQrC
What version of daisyUI are you using?
v5.6.7
Which browsers are you seeing the problem on?
All browsers
Describe your issue
PR #4432 updated the button component to support
aria-disabled="true":https://github.com/saadeghi/daisyui/blob/master/packages/daisyui/src/components/button.css#L359-L360
The menu component wasn't updated to match. It only supports the
.menu-disabledclass:https://github.com/saadeghi/daisyui/blob/master/packages/daisyui/src/components/menu.css#L129-L130
With buttons, I can write
<button aria-disabled="true">and get both the correct visual styling and the correct accessibility semantics in one attribute. With menu items, I have to add the.menu-disabledclass for the visual styling and then separately manage the ARIA attribute myself to get the same result.Menu items should support
aria-disabled="true"the same way buttons do, so that a single attribute handles both concerns.