-
Notifications
You must be signed in to change notification settings - Fork 2k
Question on odd coloring on currency output. #1225
Comments
I'd be happy to submit a PR with a change to the coloring to have at least some kind of consistent output regarding the coloring. |
Without knowing, just guessing: just highlight the significant numbers, because zero do not matter. |
Pretty much this. |
It just appears odd to my eyes sometimes having the first digit yellow, sometimes that last digit yellow. Visuals are totally subjective, of course, so if everyone else likes this styling better, just run with it. I was mostly curious about the UX design thought process behind it. Thanks |
In my opinion coloring is not only a matter of style, but meaning too (and primarily).
What about these criteria? Are there other ones to be considered? |
Sure, I absolutely can submit an update, I'd just want to get some consensus first on what the default coloring/styling of the currency output should be. Anyone else here care to chime in again? |
Curious on the regular expression used for styling the formatted currency here. It seems to result in some weird currency colors since the regex has 4 different capture groups.
So
00
shows up one way, butN0
or0N
shows up differently (where any non-zero digit in the decimals place is yellow but all zeros are gray.What was the reasoning behind that out of curiosity instead of just displaying the whole currency string in cyan?
The text was updated successfully, but these errors were encountered: