Skip to content

[joy-ui][docs] Add stray adjustments throughout the docs#41211

Merged
danilo-leal merged 14 commits intomui:masterfrom
danilo-leal:joy-ui-docs-small-fixes
Feb 22, 2024
Merged

[joy-ui][docs] Add stray adjustments throughout the docs#41211
danilo-leal merged 14 commits intomui:masterfrom
danilo-leal:joy-ui-docs-small-fixes

Conversation

@danilo-leal
Copy link
Copy Markdown
Collaborator

@danilo-leal danilo-leal commented Feb 20, 2024

This PR adds some minor quality-of-life adjustments to the Joy UI docs, mostly things that felt like low-hanging from scrolling through the dedicated docs-feedback channel. Nothing crazy. I guess the only thing I'd call out is leaving the implementation of CSS's aspect-ratio open-ended, given the previous information is already outdated.

@danilo-leal danilo-leal added docs Improvements or additions to the documentation. package: joy-ui Specific to Joy UI. labels Feb 20, 2024
@danilo-leal danilo-leal self-assigned this Feb 20, 2024
@mui-bot
Copy link
Copy Markdown

mui-bot commented Feb 20, 2024

Copy link
Copy Markdown
Collaborator

@zanivan zanivan left a comment

Choose a reason for hiding this comment

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

Looks good to me! Used this PR as an opportunity to add a tweak to the card playground demo too 😅

@danilo-leal danilo-leal merged commit 9f0d2d3 into mui:master Feb 22, 2024
@danilo-leal danilo-leal deleted the joy-ui-docs-small-fixes branch February 22, 2024 14:44
oliviertassinari added a commit to mui/mui-x that referenced this pull request Feb 28, 2024
Comment on lines -30 to -33
- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
<a href="/joy-ui/react-button/#basics">
<span class="only-light-mode">
<img src="/static/docs-infra/forking-an-example.png" alt="Forking an example" loading="lazy" width="1548" height="606" style="display: block; max-width: 774px;">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool change, but I think we should propagate those everwhere. Handled for Base UI, Material UI, MUI System, and MUI X.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The new image is pretty cool, but it creates a layout shift when loading.

Screen.Recording.2024-02-28.at.18.07.38.mov

Fixed in 479c040. The trick is for width="1628" height="700" to match. Until we improve the image loading strategy to do this automatically, there is no way around it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's always a bit tricky properly handling image size 😅 but thanks!

- [Accordion Group](#basic-usage) - a container that groups multiple accordions. It **does not** control the state of each accordion.
- [Accordion](#basic-usage) - a component that contains the expansion logic and send to AccordionSummary and AccordionDetails.
- [Accordion Summary](#basic-usage) - a header of the accordion which contain a button that triggers the expansion.
- [Accordion Details](#basic-usage) - a wrapper for the accordion details.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Broken anchor link:

Suggested change
- [Accordion Details](#basic-usage) - a wrapper for the accordion details.
- [Accordion Details](#basic) - a wrapper for the accordion details.

But personally, this would make even more sense, it's a React component:

Suggested change
- [Accordion Details](#basic-usage) - a wrapper for the accordion details.
- [`AccordionDetails`](#basic) - a wrapper for the accordion details.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There are other broken links like this throughout some of the Joy UI components that I'm aware of and plan to fix soon!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AccordionDetails would go against the style conventions—it should either be "Accordion Details" or <AccordionDetails />.

Copy link
Copy Markdown
Member

@oliviertassinari oliviertassinari Feb 29, 2024

Choose a reason for hiding this comment

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

+1 for the latter to not leave any room possible for confusion, but yeah no strong preference. Just one user feedback.

mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Mar 8, 2024
Co-authored-by: zanivan <victorzanivan@gmail.com>
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
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: joy-ui Specific to Joy UI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants