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

[Toolpad Editor] Add themes docs link to theme panel #2583

Merged
merged 5 commits into from
Aug 30, 2023

Conversation

rohanprasadofficial
Copy link
Contributor

Closes #2561
This PR targets to add docs link to the theme panel which will allow users to directly jump to the right docs from the tool itself.

Usage :
Added Typography with variant as "body2" as it was looking perfect , body1 look inconsistent and larger in the side panel.
Imported and added Link component which points to the Docs page which opens in new page with rel "noopener"

Screenshots

Dark Mode without theme selector :

Before After
before dark after dark large screen with theme selection

Dark Mode with theme selector :

Before After
befork dark with theme selector after dark large screen

Light Mode without theme selector :

Before After
before light after light theme

Light Mode with theme selector :

Before After
before light with theme selector after light with theme selection
  • I've read and followed the contributing guide on how to create great pull requests.
  • I've updated the relevant documentation for any new or updated feature
  • I've linked relevant GitHub issue with "Closes #"
  • I've added a visual demonstration under the form of a screenshot or video

Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

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

Looking great, thank you!

@Janpot Janpot merged commit da3c37a into mui:master Aug 30, 2023
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Sep 2, 2023
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Great to see more links to the docs from the UI!

@@ -97,6 +101,13 @@ export default function ComponentPanel({ className }: ComponentPanelProps) {
)}
</TabPanel>
<TabPanel value="theme" className={classes.panel}>
<Typography className={classes.themesDocsLink} variant="body2">
Customize the app with a MUI theme. Read more about this in the{' '}
<Link href="https://mui.com/toolpad/concepts/theming" target="_blank" rel="noopener">
Copy link
Member

Choose a reason for hiding this comment

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

This is a 301, slowing down the page load speed.

Suggested change
<Link href="https://mui.com/toolpad/concepts/theming" target="_blank" rel="noopener">
<Link href="https://mui.com/toolpad/concepts/theming/" target="_blank" rel="noopener">

Fixed in ddffda5

@@ -97,6 +101,13 @@ export default function ComponentPanel({ className }: ComponentPanelProps) {
)}
</TabPanel>
<TabPanel value="theme" className={classes.panel}>
<Typography className={classes.themesDocsLink} variant="body2">
Customize the app with a MUI theme. Read more about this in the{' '}
Copy link
Member

Choose a reason for hiding this comment

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

It's uses Material UI:

Suggested change
Customize the app with a MUI theme. Read more about this in the{' '}
Customize the app with a Material UI theme. Read more about this in the{' '}

Fixed in ddffda5

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.

Link docs for theme editor
3 participants