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-infra] Fix search icon issue #40957

Merged
merged 1 commit into from Feb 11, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Feb 5, 2024

Fix #33731

The problem is that https://docsearch.algolia.com/docs/api/ doesn't allow us to customize the home dialog, so we have to use:

ReactDOMServer.renderToStaticMarkup(<NewStartScreen />),

to be able to render what we want. Because of the way Emotion works, this doesn't inject any styles.

The workaround I used is to redefine these styles, only using the SVG path.

In the future, the static extraction should provide stable CSS class names, and I also think that we should do #37599, removing the need to use renderToStaticMarkup: emotion-js/emotion#3008.

Before: https://deploy-preview-40953--material-ui.netlify.app/blog/aggregation-functions/
After: https://deploy-preview-40957--material-ui.netlify.app/blog/aggregation-functions/

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work scope: docs-infra Specific to the docs-infra product labels Feb 5, 2024
@oliviertassinari oliviertassinari mentioned this pull request Feb 5, 2024
1 task
@mui-bot
Copy link

mui-bot commented Feb 5, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 7eb3ed8

@oliviertassinari oliviertassinari added the package: system Specific to @mui/system label Feb 7, 2024
@oliviertassinari oliviertassinari merged commit af72a04 into mui:master Feb 11, 2024
22 checks passed
@oliviertassinari oliviertassinari deleted the fix-broken-icons branch March 18, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work package: system Specific to @mui/system scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs-infra] The icons in the search dialog appear abnormally
2 participants