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

[Tabs] Fix being able to activate a disabled tab #1359

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

michaldudak
Copy link
Member

@michaldudak michaldudak commented Jan 27, 2025

Placing a disabled prop on a Tabs.Tab only prevented it from being activated via a keyboard, but not with a pointer.

Before: https://codesandbox.io/p/sandbox/gallant-sunset-rq8gt4?file=%2Fsrc%2Findex.module.css
After: https://codesandbox.io/p/sandbox/kind-newton-xmpj8v?workspaceId=ws_QAeLcZEcDnfGaFA47etEUH

@michaldudak michaldudak added component: tabs This is the name of the generic UI component, not the React module! bug 🐛 Something doesn't work labels Jan 27, 2025
Copy link

netlify bot commented Jan 27, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit bc2f940
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/6797901213193f00080d383e
😎 Deploy Preview https://deploy-preview-1359--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@michaldudak michaldudak marked this pull request as draft January 27, 2025 12:42
@michaldudak michaldudak marked this pull request as ready for review January 27, 2025 14:14
Copy link
Member

@mj12albert mj12albert left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@michaldudak michaldudak merged commit 851d1c1 into mui:master Jan 28, 2025
23 checks passed
@michaldudak michaldudak deleted the fix-disabled-tabs branch January 28, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants