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

Button Icon Color #659

Open
diggeddy opened this issue Aug 22, 2022 · 3 comments
Open

Button Icon Color #659

diggeddy opened this issue Aug 22, 2022 · 3 comments
Labels
feature Features, refactoring, enhancements, improvements

Comments

@diggeddy
Copy link
Collaborator

Description

Add Icon color options for Buttons

@diggeddy diggeddy added the triage Awaiting review label Aug 22, 2022
@JeanPaiva JeanPaiva added feature Features, refactoring, enhancements, improvements and removed triage Awaiting review labels Aug 23, 2022
@SchneiderSam
Copy link

SchneiderSam commented Jan 27, 2023

Yes please. This would be a great thing, especially for the Accordion Block/ Tab Block.

@franciscogaray
Copy link

+1 https://generate.support/topic/button-icon/#post-28261

How do you change the icon color on a button that is different from the text button color?
https://postimg.cc/DJcH6fpb

@franciscogaray
Copy link

franciscogaray commented Jul 20, 2023

+1 https://generate.support/topic/button-icon/#post-28585

Hi Francisco – Please upvote this feature from me too. Anytime you can move CSS like this to the editor makes sense – especially when using Global Styles.

To link the color to the GP color palette, give this CSS a whirl. The variable color can be linked to whatever palette color desired, and it now has more global styling capabilities.

/* CSS to change the fill color */
.custom-color > .gb-icon > svg > path { 
  fill: var(--primary-accent); /* Replace 'primary-accent' with your desired palette color */
}

/* CSS for hover effect */
.custom-color:hover > .gb-icon > svg > path { 
  fill: var(--secondary-accent); /* Replace 'secondary-accent' with your desired palette color */
}

Thanks,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features, refactoring, enhancements, improvements
Projects
None yet
Development

No branches or pull requests

4 participants