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

[material-ui] Fix getOverlayAlpha type #41995

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Apr 21, 2024

  • getOverlayAlpha() is provided to alpha() who expects a number but it returns a string today
  • getOverlayAlpha() return type is missing, breaking MUI's policy
  • getOverlayAlpha() is not using a function(), breaking MUI's policy
  • two digits seems a bit too light as an approximation, go for 3

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Apr 21, 2024
@mui-bot
Copy link

mui-bot commented Apr 21, 2024

Netlify deploy preview

https://deploy-preview-41995--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against ab8883d

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

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

👍

@mnajdova mnajdova merged commit bfeb493 into mui:next Apr 23, 2024
20 checks passed
@oliviertassinari oliviertassinari deleted the fix-getOverlayAlpha branch April 23, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants