Add backcolor property to an md-chip
See original GitHub issueBug, feature request, or proposal:
feature request
What is the expected behavior?
a chip has a background color property. Which can be set during runtime by a hex value from the database.
What is the current behavior?
Only the selected chip`s color can be set but not the background color of an unselected chip.
What is the use-case or motivation for changing an existing behavior?
certain items can be better seen at first sight when there are like 90 chips on a screen. Think of 3 subjects for 30 students. Biology (green), Geography (brown), etc…
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest version.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Angular 2 Material md-chips color attribute not working
I was forced to use a CSS property: <md-chip color="primary" [selected]="true" style="background-color: #986f37">Content here</md-chip>.
Read more >Style.BackColor Property (System.Web.UI.WebControls)
Use the BackColor property to specify the background color of the Web server control. This property is set using a System. Drawing. Color...
Read more >@react-md/chip | Yarn - Package Manager
Create a compact actionable element that can be used to represent an input, attribute, or action. A chip can be used to represent...
Read more >BackColor Property (Label) | ActiveReports 14 .NET Edition
Gets or sets the background color of the control area.
Read more >How to set the background color of the TextBox in C ...
// Set BackColor property Mytextbox.BackColor = Color.LightGray;; Step 3 : And last add this textbox control to from using Add() method. // Add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bastienJS then how about
ngStyle
?https://plnkr.co/edit/mA5vM1MMrrF4rdq3uoXV?p=preview
I dunno, it seems like adding an API for background color seems extraneous, especially when it’s so easy to accomplish by other means.
@bastienJS why not just use regular old css to set the background colors?
https://plnkr.co/edit/ZAa5gKgZ0aydVnIdz35y?p=preview