Give the SEND TO AI switch an accessible name

Fixkamo-internal
Shipped
September 2, 2026 at 4:54 AM UTC
Author
Kamo
Commit
b91330e

The switch set its aria-label through `inputProps`, which MUI 7 drops on Switch without a warning — so the label never reached the DOM. The words SEND TO AI beside it are a sibling Typography rather than a label, so there was nothing to fall back on: a screen reader announced "checkbox, not checked" and no more. Of every control on this window it is the worst one to leave nameless, being the one that starts a session on a machine holding cluster credentials. `slotProps.input` carries it. The trap is specific to Switch, and was measured rather than assumed — Checkbox, Radio, TextField and InputBase all still honour `inputProps` on this version, so their uses elsewhere in the app are unaffected. Ten other Switches in the app do have this defect; they are left for a change that is about them.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing