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

💄 Added icons next to sidebar titles #115

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

Calinator444
Copy link
Member

@Calinator444 Calinator444 commented Jan 2, 2025

Description

Updates the megamenu with a prop that can he used to add icons next to the heading in the sidebar menu groups

Screenshots

image
Figure: Sidebar menu heading using one of the svgs in the project as an icon

image
Figure: Sidebar menu using an external image as the icon

Copy link
Member

@isaaclombardssw isaaclombardssw left a comment

Choose a reason for hiding this comment

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

One small thing, otherwise LGTM

@@ -22,12 +23,14 @@ export interface MegaIconProps {
// TODO: implement below intended solution extends React.ComponentPropsWithoutRef<"span"> {
iconImg?: string;
icon?: AvailableIcons;
imgSize?: "small" | "medium";
Copy link
Member

Choose a reason for hiding this comment

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

I would also move this into the constants if we're designing things like that.

ex. ICON_IMAGE_SIZE_OPTIONS = ["small", "medium"]

Copy link
Member Author

Choose a reason for hiding this comment

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

Done - I moved icon sizes into it's own separate type

Copy link
Member

@isaaclombardssw isaaclombardssw left a comment

Choose a reason for hiding this comment

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

Looks great

@Calinator444 Calinator444 merged commit 67ed426 into main Jan 2, 2025
1 check passed
@Calinator444 Calinator444 deleted the 108-icons-next-to-sidebar-titles branch January 2, 2025 03:33
@Calinator444 Calinator444 changed the title 108 icons next to sidebar titles 💄 Added icons next to sidebar titles Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants