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] Push the fixes on Next.js's Link to the examples #28178

Merged
merged 1 commit into from
Sep 23, 2021

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Sep 5, 2021

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Sep 5, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 5, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against 8a15a4f

eps1lon
eps1lon previously requested changes Sep 6, 2021
import { styled } from '@mui/material/styles';

// Add support for the sx prop for consistency with the other branches.
const Anchor = styled('a')({});
Copy link
Member

Choose a reason for hiding this comment

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

Please keep the example minimal. There is no need to add another learning layer. Consistency is not a target.

Copy link
Member Author

@oliviertassinari oliviertassinari Sep 14, 2021

Choose a reason for hiding this comment

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

It's meant as a bug fix. This style allows getting the sx prop no matter the params (using external links or not). I believe @siriwatknp added it because it noticed that it wasn't always present.

Copy link
Member Author

@oliviertassinari oliviertassinari Sep 18, 2021

Choose a reason for hiding this comment

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

I have created https://codesandbox.io/s/polished-wood-31j6t?file=/pages/index.js to illustrate the bug fixed

@eps1lon eps1lon changed the base branch from next to master September 14, 2021 09:23
@oliviertassinari oliviertassinari dismissed eps1lon’s stale review September 18, 2021 22:19

I think that there should be a single Link component source branch (even if the source are duplicated between files). If we are feel the source gets too complicated, then its the sign that we need to expose dedicated component from MUI, e.g. '@mui/material/NextLink'.

@oliviertassinari oliviertassinari merged commit 838e9e6 into mui:master Sep 23, 2021
@oliviertassinari oliviertassinari deleted the sync-link-component branch September 23, 2021 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants