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

feat: dynamic icons by adding material symbols font #5008

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

nunogois
Copy link
Member

https://linear.app/unleash/issue/2-1502/add-support-for-custom-dynamic-icons-mui-icon-component

Adds support for custom dynamic icons by adding the Material Symbols Outlined font and setting the MUI Icon component base class. See: https://mui.com/material-ui/icons/#icon-font-icons

Message banner use case: This will not only enable us to set custom icons for external message banners, but will also let users configure their desired icon from the set of options in the font.

@vercel
Copy link

vercel bot commented Oct 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 9:26am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 12, 2023 9:26am

@@ -617,5 +617,12 @@ export default createTheme({
}),
},
},

// Default Icon to Material Symbols Outlined font
Copy link
Member

Choose a reason for hiding this comment

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

Very personal opinion but this comment doesn't help me much. The code suggests this is a default prop for material-symbols-outlined, the comment just reiterates that

Totally fine for it to stick around

Copy link
Member Author

@nunogois nunogois Oct 12, 2023

Choose a reason for hiding this comment

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

Fair point, seems redundant. I'll yeet it!

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

G. Optional comment around comments

@nunogois nunogois merged commit 2ab2aa1 into main Oct 12, 2023
14 checks passed
@nunogois nunogois deleted the feat-icon-material-symbols-font branch October 12, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants