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

Material button hover color displayed incorrectly #6687

Closed
nhducseuit opened this issue Aug 29, 2017 · 4 comments
Closed

Material button hover color displayed incorrectly #6687

nhducseuit opened this issue Aug 29, 2017 · 4 comments

Comments

@nhducseuit
Copy link

nhducseuit commented Aug 29, 2017

Bug, feature request, or proposal:

Material button hover color displayed incorrectly

What is the expected behavior?

On button hover, background color of md-button should display as styled in the stylesheet.

What is the current behavior?

Background color set in hover action is #e6e6e6, but what actually displayed is #d2d8e1 for button uses primary color palette, and is #e7d8cc for button uses accent color palette.
The primary default color is #202020, while accent default color is #ee7617

Somehow the actual hover colors of buttons are related to the text color of the button.

I tried with some different colors but the hover colors of buttons are always displayed wrong.

The tool I used to pick actual color displayed by browser is GPick.

What are the steps to reproduce?

I have created a plunker at http://plnkr.co/edit/DozKGIY1MhnfYzNjulRH
But I cannot make it working because I don't know what URL to import for material theming in the _app.theme.scss file.
Would appreciate anyone can help me correct that line.

What is the use-case or motivation for changing an existing behavior?

None

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4.1.2
Material 2.0.0-beta.8
Tested on Chrome and Firefox, both affected.

Is there anything else we should know?

None

@willshowell
Copy link
Contributor

This sounds more like a support question of "how to customize button background color", right?

@nhducseuit
Copy link
Author

nhducseuit commented Aug 30, 2017

Probably @willshowell :) You helped in SO already so I'll close this one.

Edit: looks like I cannot close. Could somebody help me close this?

@josephperrott
Copy link
Member

Closing per update

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants