Components: Add success color option

Created on 19 May 2017  路  6Comments  路  Source: angular/components

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

There should also be a success and error color for theming

What is the current behavior?

There are only primary, accent, warn

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

There are times, when you want to colorize correct inputs, have a green check icon saying something is ok and a red one for not ok.
Also a warning can be "you should not do this" as an error is something different. So an error color would be helpfull too sometimes. Think of a traffic light. (warning orange, error red)

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

ng 4.1.x, md beta 5

Most helpful comment

This is no longer true.

Alternative colors
The Material Design color system supports alternative colors, which are colors used as alternatives to your brand鈥檚 primary and secondary colors (they constitute additional colors...

The Material Design color system supports alternative colors, which are colors used as alternatives to your brand鈥檚 primary and secondary colors (they constitute additional colors to your theme). Apps can use alternative colors to establish themes that distinguish different sections.

All 6 comments

We primarily endeavor to follow to the material design specification, which only outlines colors for primary, accent, and "error state". It might be interesting to eventually support an arbitrary number of palettes, but this isn't on our radar anytime soon.

@jelbourn I literally removed exactly the same answer point of view because I thought will be rude. I guess from now on I should point Material design spec 馃槂

This is no longer true.

Alternative colors
The Material Design color system supports alternative colors, which are colors used as alternatives to your brand鈥檚 primary and secondary colors (they constitute additional colors...

The Material Design color system supports alternative colors, which are colors used as alternatives to your brand鈥檚 primary and secondary colors (they constitute additional colors to your theme). Apps can use alternative colors to establish themes that distinguish different sections.

This would be great, but like @AMNY49's above comment says, it probably should be more generic and allow arbitrary additional colors to be used. That would probably be more work than what this suggestion is asking but would be worth it.

for the linking purposes: the issue landed here #11888

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xtianus79 picture xtianus79  路  3Comments

vitaly-t picture vitaly-t  路  3Comments

jelbourn picture jelbourn  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

dzrust picture dzrust  路  3Comments