-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Flat button with inverted colors (accent color background) #7264
Comments
I don't follow. How is this not the existing |
One way to implement it: add a new directive |
While not idiomatic, it might be nice if adjusting the elevation of the raised button was a little easier. This, <button mat-raised-button class="mat-elevation-z0">BUTTON</button> doesn't work because both the default elevation and z0 styles have the same specificity. Of course it's simple to add this to your global stylesheet. .my-flat-button.mat-raised-button {
box-shadow: none;
} |
Allows for the consumer to set the button elevation through the elevation classes, similarly to the menu, card and expansion components. Fixes angular#7264.
Allows for the consumer to set the button elevation through the elevation classes, similarly to the menu, card and expansion components. Fixes angular#7264.
Allows for the consumer to set the button elevation through the elevation classes, similarly to the menu, card and expansion components. Fixes #7264.
@crisbeto Thank you very much. |
That would be nice if we could also overwrite cc @crisbeto |
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to #7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
Allows for consumer to specify a custom elevation on a `mat-button-toggle-group`. Relates to angular#7264.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Feature request:
A flat button with accent background and its corresponding text color.
What are the steps to reproduce?
Basically it's a raised button without its shadow.
![image](https://user-images.githubusercontent.com/7990765/30759151-61f64590-9fd5-11e7-9de0-9c02eec613fb.png)
What is the use-case or motivation for changing an existing behavior?
Those buttons are used in many situations since you are not supposed to use the raised button on elements with z-elevation.
They are already present in many (if not all) Google apps and websites with material design.
Even though they are not described in the official guidelines, the image you see is taken from the material guidelines website on the 'button' page.
The text was updated successfully, but these errors were encountered: