Skip to content
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

Suggestion - Allow conditional formatting based on rules. #7

Open
AnthonyBorton opened this issue Dec 15, 2016 · 2 comments
Open

Suggestion - Allow conditional formatting based on rules. #7

AnthonyBorton opened this issue Dec 15, 2016 · 2 comments

Comments

@AnthonyBorton
Copy link

I love the widget you have created and would like to suggest an enhancement for your consideration.

If you look at the Work Item Query widget from Microsoft you can see that you can specify conditional styling rules based on values. I would love to be able to change the colour of the widget background to red if coverage falls below a threshold I set. I'd also love to change the background to green if the coverage exceeds a different value.

Just an idea.

Cheers

Anthony

@sdavis3
Copy link
Owner

sdavis3 commented Dec 15, 2016

Thanks for the compliment @AnthonyBorton. Since the font is currently black, I see two ways of accomplishing this: 1) Change the font to the conditional styling or 2) Change the background, as you suggest, but also change the font to white so it can be read on a display.

Thoughts?

@AnthonyBorton
Copy link
Author

Looking at the Microsoft dashboard widgets, they use black font for white tiles and a white font for any tiles with colour. Might be nice to do the same thing for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants