Type Score: Prefix & Suffix should not be trimmed

Created on 3 February 2022, over 2 years ago
Updated 8 March 2024, 4 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.69.0 2024