diff options
author | Joris | 2022-09-04 11:31:07 +0200 |
---|---|---|
committer | Joris | 2022-09-04 11:31:07 +0200 |
commit | 7c5a31a162eb6664eff665e0cfadc089188a5e8f (patch) | |
tree | 6ba3a21da0cce8a3ae76e00ed0918f20c62403d2 /templates/payment/table.html | |
parent | d8e39e49d32502a39c1097e2a4ee9354f321220a (diff) |
Remove inline styling for category colors
Also stop changing color of select options, because it does not work
reliably accross browsers.
Diffstat (limited to 'templates/payment/table.html')
-rw-r--r-- | templates/payment/table.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/payment/table.html b/templates/payment/table.html index fc69b2d..450d84b 100644 --- a/templates/payment/table.html +++ b/templates/payment/table.html @@ -81,10 +81,12 @@ {{ payment.cost | euros() }} </span> <span class="g-Table__Cell">{{ payment.user }}</span> - <span class="g-Table__Cell g-Media__Large"> - <span style="color: {{ payment.category_color }}"> - {{ payment.category_name }} - </span> + <span + class="g-Table__Cell g-Media__Large" + is="colored-category" + data-color="{{ payment.category_color }}" + > + {{ payment.category_name }} </span> {% if query.frequency != "Monthly" %} <span class="g-Table__Cell"> |