Changing all button color and text color on hover

Solved

Changing all button color and text color on hover

GLL2024
Tourist
5 0 2

Looking to add the hover effect to all of my buttons to change the background color to #d2a96a and the text color to #fff4eb.  I had success changing the product "Add to Cart" button color with this code: 

 

button.product-form__submit.button.button--full-width.button--secondary:hover {background:#d2a96a  !important;}

 

but I have had no success adapting the code to also change text color as well as changing any of my other buttons (namely the buttons on the home page and the contact us page). Is there a single line of code I could use to add this effect to all buttons? I'm working in the Dawn theme. 
URL: https://6af6dc-42.myshopify.com/

Password: neimpu

 

Thanks in advance!

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1957 562 561

This is an accepted solution.

@GLL2024, try this one 

button:hover, .button:hover {background:#d2a96a!important;}

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 2 (2)

BSSCommerce-B2B
Shopify Partner
1957 562 561

This is an accepted solution.

@GLL2024, try this one 

button:hover, .button:hover {background:#d2a96a!important;}

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

GLL2024
Tourist
5 0 2

This worked perfectly, and I was able to change the text color as well by replacing "background" with "color". Thank you!