Skip to content

Commit aefbaa1

Browse files
authored
Fix missing change from #2529 (#2531)
A small, hard to notice change was present in my suggestion that wasn't picked up.
1 parent ce1c391 commit aefbaa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sponsors/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def get_benefit_split(self, obj: SponsorshipPackage) -> str:
212212
for i, (name, pct) in enumerate(split):
213213
pct_str = f"{pct:.0f}%"
214214
widths.append(pct_str)
215-
spans.append(f"<span title='{name}' style='background-color:var(--{colors[i]})'>{pct_str}</span>")
215+
spans.append(f"<span title='{name}' style='background-color:{colors[i]}'>{pct_str}</span>")
216216
# define a style that will show our span elements like a single horizontal stacked bar chart
217217
style = f'color:#fff;text-align:center;cursor:pointer;display:grid;grid-template-columns:{" ".join(widths)}'
218218
# wrap it all up and put a bow on it

0 commit comments

Comments
 (0)