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

[docs] Fix branding theme tabs and navigation bar regressions #37362

Merged

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented May 22, 2023

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

Fix the following regressions reported in Slack:

  1. The tabs on the Home page:

Home Page Tabs


  1. The tabs on the Pricing page:

Pricing Page Tabs


  1. Nav Bar links:
Nav.Bar.Hover.Regression.mov

For regressions 1 and 2, it was because in the branding theme, the Tab component styles were being overridden globally. It was done for the Base UI documentation tab in #35938 (see the diff), but it affected the Home and Pricing pages. The branding theme is used by the BrandingCssVarsProvider, which is used in the Home, Pricing and other pages. The solution was to apply the styles for the Base UI tabs in it's own context in ComponentPageTabs using the sx prop.

For regression 3, see explanation below. Fixes #37368

@ZeeshanTamboli ZeeshanTamboli added the docs Improvements or additions to the documentation label May 22, 2023
@mui-bot
Copy link

mui-bot commented May 22, 2023

Netlify deploy preview

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

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against f348346

@ZeeshanTamboli ZeeshanTamboli changed the title [WIP] Fix Tabs and Navigation bar regression [docs] Fix Tabs and Navigation bar regression May 22, 2023
@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review May 22, 2023 10:06
@ZeeshanTamboli ZeeshanTamboli changed the title [docs] Fix Tabs and Navigation bar regression [docs] Fix Tabs and Navigation bar regressions May 22, 2023
@ZeeshanTamboli ZeeshanTamboli added the regression A bug, but worse label May 22, 2023
@ZeeshanTamboli ZeeshanTamboli requested a review from a team May 22, 2023 10:09
@ZeeshanTamboli ZeeshanTamboli changed the title [docs] Fix Tabs and Navigation bar regressions [docs] Fix branding theme Tabs and Navigation bar regressions May 22, 2023
@ZeeshanTamboli ZeeshanTamboli changed the title [docs] Fix branding theme Tabs and Navigation bar regressions [docs] Fix branding theme tabs and navigation bar regressions May 22, 2023
@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label May 22, 2023
@oliviertassinari
Copy link
Member

oliviertassinari commented May 22, 2023

@ZeeshanTamboli Great! Thanks for fixing this.

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Thanks @ZeeshanTamboli

@ZeeshanTamboli ZeeshanTamboli merged commit 4561535 into mui:master May 23, 2023
18 checks passed
@ZeeshanTamboli ZeeshanTamboli deleted the fix-tabs-and-is-selector-regression branch May 23, 2023 14:57
@oliviertassinari oliviertassinari added the priority: important This change can make a difference label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation priority: important This change can make a difference regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Docs] emotionCache global selector plugin affects styles
5 participants