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 missing leading slashes in URLs #14249

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Aug 17, 2024

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work docs Improvements or additions to the documentation component: pickers This is the name of the generic UI component, not the React module! labels Aug 17, 2024
Comment on lines -481 to +480
onKeyDown={(e: React.KeyboardEvent) => {
onKeyDown={(event: React.KeyboardEvent) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Code policy to avoid shorthands

<DemoWrapper link="/x/react-date-pickers/validation">
<DemoWrapper link="/x/react-date-pickers/validation/">
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the same case as the pricing page, but it's not as visible, Netlify has a bug: https://answers.netlify.com/t/no-trailing-slash-when-using-proxies/48790/11.

Comment on lines -81 to +86
<Stack direction="row" spacing={2} sx={{ mb: description ? 2 : 0, width: '100%' }}>
<Stack
direction="row"
spacing={2}
sx={{ mb: description ? 2 : 0, width: '100%', alignItems: 'center' }}
>
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

🙈 🎉

@oliviertassinari oliviertassinari changed the title Fix 301 pickers [pickers][docs] Fix missing leading slashes in URLs Aug 17, 2024
@mui-bot
Copy link

mui-bot commented Aug 17, 2024

Deploy preview: https://deploy-preview-14249--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 28680d7

@oliviertassinari oliviertassinari added the regression A bug, but worse label Aug 17, 2024
@LukasTy LukasTy changed the title [pickers][docs] Fix missing leading slashes in URLs [docs] Fix missing leading slashes in URLs Aug 19, 2024
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM. 💯
Thank you for taking care of it. 👍

@@ -316,21 +316,21 @@ export function KeyboardSvg({ selectedKey, handleKeySelection }: KeyboardSvgProp
selectedKey.key.toLowerCase() === label.toLowerCase() &&
selectedKey.location === location,
})}
onMouseDown={(e) => {
onMouseDown={(event) => {
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: The code for these demos is not visible anywhere in the docs, so, it's not a visible problem. 👍

Copy link
Member Author

@oliviertassinari oliviertassinari Aug 19, 2024

Choose a reason for hiding this comment

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

I'm not sure. I could fix https://github.com/mui/material-ui/pull/43361/files because I could get a hit for my search of "event.key.toLowerCase() === 'c'" in the MUI's codebase. I didn't search for "e.key.toLowerCase() === 'c'"

Comment on lines -81 to +86
<Stack direction="row" spacing={2} sx={{ mb: description ? 2 : 0, width: '100%' }}>
<Stack
direction="row"
spacing={2}
sx={{ mb: description ? 2 : 0, width: '100%', alignItems: 'center' }}
>
Copy link
Member

Choose a reason for hiding this comment

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

🙈 🎉

Copy link
Contributor

@noraleonte noraleonte left a comment

Choose a reason for hiding this comment

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

Thanks for fixing these 🎉

@alexfauquette alexfauquette merged commit 60dc904 into mui:master Aug 19, 2024
26 checks passed
@oliviertassinari oliviertassinari deleted the fix-301-pickers branch August 19, 2024 13:33
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: pickers This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants