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] Revise Joy UI "Typography" page #35868

Merged
merged 9 commits into from
Feb 7, 2023
Merged

[docs] Revise Joy UI "Typography" page #35868

merged 9 commits into from
Feb 7, 2023

Conversation

LadyBluenotes
Copy link
Contributor

@LadyBluenotes LadyBluenotes commented Jan 19, 2023

#33998

Getting started with reviewing the Typography page.

I reviewed the page to (hopefully) be more consistent with the style guide.

I tried to rework the structure so it looks more like the one you had intended, but I could use some guidance on if I'm on the right track or not.

I'm curious if you would think adding an example under the 'basics' part of the page could be beneficial versus the code example currently there.

@samuelsycamore

Signed-off-by: Sarah 98355961+LadyBluenotes@users.noreply.github.com

https://deploy-preview-35868--material-ui.netlify.app/joy-ui/react-typography/

Getting started with reviewing the Typography paged.

I reviewed the page to (hopefully) be more consistent with the style guide.

I tried to rework the structure so it looks more like the one you had intended, but I could use some guidance on if I'm on the right track or not.

I'm curious if you would think adding an example under the 'basics' part of the page could be beneficial versus the code example currently there.

@samuelsycamore 

Signed-off-by: Sarah <98355961+LadyBluenotes@users.noreply.github.com>
@mui-bot
Copy link

mui-bot commented Jan 19, 2023

Messages
📖 Netlify deploy preview: https://deploy-preview-35868--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 1bba85b

Copy link
Member

@samuelsycamore samuelsycamore left a comment

Choose a reason for hiding this comment

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

Thank you so much for tackling this @LadyBluenotes !! This is definitely an improvement over the earlier version. I've left some comments throughout to suggest ways to further improve it in the next draft—and hopefully they'll help clarify some of our house style rules if you decide to do more of these revisions (and I hope you will)!

Additionally: this doc is currently missing a section called "Anatomy" that I've been adding to all of our component docs. This section details what the component actually renders out to in the DOM, including all HTML tags and classes denoting the component's slots. You can get this info by inspecting the component in your browser dev tools and copying+pasting the code from there. It may include some redundant/noisy CSS classes that you shouldn't apply styles to anyway, so check the other component docs I've revised to see which ones I include as relevant.

docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
@samuelsycamore samuelsycamore added docs Improvements or additions to the documentation component: Typography The React component. package: joy-ui Specific to @mui/joy labels Jan 19, 2023
@samuelsycamore
Copy link
Member

Here's some MUI-specific stuff you'll need to know to get those pesky tests to pass:

yarn prettier will clear up test_static
yarn markdownlint will clear up test_lint

@samuelsycamore
Copy link
Member

samuelsycamore commented Jan 19, 2023

One more thing: if/when you create a new demo for the Basics section, you'll want to start with a .tsx file. Don't sweat if you're not familiar with TypeScript! You can copy and paste the bare bones from one of the other Typography demos, and pretty much everything you'd want to add will be identical to JS.

Once you're happy with that demo, you'll need to run yarn docs:typescript:formatted which will generate the demo's corresponding .js file. This is the file that ultimately gets pulled into the Markdown, as you can see where the other demos are inserted. Let me know if you get stuck or have any questions about this!

Copy link
Contributor Author

@LadyBluenotes LadyBluenotes left a comment

Choose a reason for hiding this comment

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

Still waiting on some clarification on the levels / semantic levels part but I've made some of the changes that were talked about!

I used some of the other finished docs to base the anatomy section off of.

If there's anything else you see that I've missed, please let me know!

Copy link
Member

@samuelsycamore samuelsycamore left a comment

Choose a reason for hiding this comment

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

Nice work on the next draft @LadyBluenotes! I think we're getting close. Left some more comments throughout. Don't forget to run yarn prettier and yarn markdownlint!

docs/data/joy/components/typography/TypographyBasics.tsx Outdated Show resolved Hide resolved
docs/data/joy/components/typography/TypographyBasics.tsx Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
@samuelsycamore
Copy link
Member

@LadyBluenotes feel free to request a review from me if/when you're ready!

@samuelsycamore
Copy link
Member

Great job @LadyBluenotes! I went ahead and pushed some commits to your branch here, so be sure to git pull before making any more changes. I tweaked a couple things here and there that would take longer for me to explain than to just do myself. 😅 In particular, I don't think I was doing a good job of explaining what I was looking for in the Anatomy section, so hopefully my changes make that more clear.

Copy link
Member

@samuelsycamore samuelsycamore left a comment

Choose a reason for hiding this comment

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

I am tentatively approving this to be merged 👍 but let's wait for a final review from @siriwatknp or @danilo-leal to confirm that everything is still technically accurate and that we're not missing any key details.

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.

Left just a tiny note there but aside from that, it looks fantastic!
Thanks, @LadyBluenotes for helping us out with it!

docs/data/joy/components/typography/typography.md Outdated Show resolved Hide resolved
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Huge improvement! Great job @LadyBluenotes 👏. Looking forward to the next one.

Signed-off-by: Sam Sycamore <71297412+samuelsycamore@users.noreply.github.com>
@samuelsycamore
Copy link
Member

Thanks again @LadyBluenotes!! Great job!

@samuelsycamore samuelsycamore merged commit d3cdc89 into mui:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Typography The React component. docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants