Type Score: Prefix & Suffix should not be trimmed

Created on 3 February 2022, almost 3 years ago
Updated 8 March 2024, 10 months ago

Pre- & Suffix fields should allow spaces.

Its all fine in Twig, we have:
data-score-suffix=" Hours"

Its all fine in our Javascript vars, too (eg. scoreSuffixMarkup):
<span class="score__progressbar-suffix">&#x20;Stunden</span>

After its passed to progressbar.js, the space is gone.
They might trim it somewhere, didn't found it so far..

Search for "setText", see:
https://github.com/kimmobrunfeldt/progressbar.js/blob/master/src/shape.js

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024