components icon indicating copy to clipboard operation
components copied to clipboard

Add success color option

Open mbeckenbach opened this issue 9 years ago • 6 comments

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

mbeckenbach avatar May 19 '17 12:05 mbeckenbach

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 avatar May 23 '17 01:05 jelbourn

@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 đŸ˜ƒ

yordis avatar May 23 '17 08:05 yordis

This is no longer true.

Alternative colors The Material Design color system supports alternative colors, which are colors used as alternatives to your brand’s 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’s primary and secondary colors (they constitute additional colors to your theme). Apps can use alternative colors to establish themes that distinguish different sections.

AMNY49 avatar Jun 22 '18 00:06 AMNY49

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.

JaxonWright avatar Jun 29 '18 17:06 JaxonWright

for the linking purposes: the issue landed here #11888

smnbbrv avatar Aug 07 '18 15:08 smnbbrv

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.