mui / mui/base-ui

[accordion] disabled attribute isn't set on AccordionTrigger

Open
#4,114 8 comments 0 reactions 0 assignees View on GitHub
component: accordion component: collapsible has workaround type: bug
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Bug report

## Current behavior

If I set the attribute `disabled` at `true` on AccordionItem, the AccordionTrigger (the button) only has the `aria-disabled` attribute or `data-disabled`.
So the button/trigger is still "keyboard focusable".

## Expected behavior

I attempt to see the `disabled` attribute added to the "button", not only the `aria-disabled` or `data-disabled` attribute.

## Reproducible example

[Shadcn/ui example](https://ui.shadcn.com/docs/components/base/accordion#disabled)

## Base UI version

v1.2.0

## Which browser are you using?

Chrome v145

## Which OS are you using?

Mac OS v15.5

## Additional context

The bug was detecting by using shadcn/ui with base-ui: https://ui.shadcn.com/docs/components/base/accordion#disabled

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.