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] Improve Base UI index page #37761

Merged
merged 2 commits into from
Jun 30, 2023
Merged

Conversation

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation package: base-ui Specific to @mui/base labels Jun 29, 2023
Comment on lines -172 to +177
<Typography component="h2" variant="body2" fontWeight={600} sx={{ px: 2, py: 1.5 }}>
<Typography
component="h2"
variant="body2"
fontWeight="semiBold"
sx={{ px: 2, py: 1.5 }}
>
Copy link
Member Author

Choose a reason for hiding this comment

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

Replace the hard-coded 600 value for the design token theme.typography.fontWeightSemiBold (600)

Comment on lines 150 to +152
<CardMedia
component="img"
alt={component.title}
alt=""
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 a decorative image, it shouldn't have an alt https://www.w3.org/WAI/tutorials/images/decorative/. It was flagged by https://wave.webaim.org/

Screenshot 2023-06-30 at 01 06 45

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, nice ⎯ thanks for explaining. Thought every image should receive an alt text 🤙

Comment on lines -133 to -136
component="a"
component={Link}
noLinkStyle
variant="outlined"
rel="nofollow"
target="_blank"
Copy link
Member Author

Choose a reason for hiding this comment

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

I believe opening in a new tab is a strange UX, none of the benchmark in https://www.notion.so/mui-org/Build-a-components-index-page-20e993e49ee9473fac1ef0aa1a00ab39 do this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, good catch!

href: '/base/react-textarea-autosize/',
srcLight: '/static/base-ui/react-components/textarea-light.png',
srcDark: '/static/base-ui/react-components/textarea-dark.png',
href: '/base-ui/react-textarea-autosize/',
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 initial issue, we change these docs pages location.

Comment on lines -121 to +122
srcDark: '/static/images/base-ui-components/textarea-dark.png',
href: '/base/react-textarea-autosize/',
srcLight: '/static/base-ui/react-components/textarea-light.png',
srcDark: '/static/base-ui/react-components/textarea-dark.png',
Copy link
Member Author

Choose a reason for hiding this comment

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

I think that we can reorganize the images to have a root folder per product, in this case,/base-ui/. This better isolates each open-source project.

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
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

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

Great one, learned stuff!

@danilo-leal danilo-leal merged commit e62355a into mui:master Jun 30, 2023
18 checks passed
@oliviertassinari oliviertassinari deleted the fix-url branch June 30, 2023 14:48
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 package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants