question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add backcolor property to an md-chip

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
willshowellcommented, Jul 31, 2017

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

1reaction
willshowellcommented, Jul 5, 2017

@bastienJS why not just use regular old css to set the background colors?

https://plnkr.co/edit/ZAa5gKgZ0aydVnIdz35y?p=preview

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found