cal-itp / benefits

Transit benefits enrollment, minus the paperwork.
https://docs.calitp.org/benefits
GNU Affero General Public License v3.0
26 stars 9 forks source link

Fix: unnecessary space on required form field label #2037

Closed angela-tran closed 4 months ago

angela-tran commented 4 months ago

Fixes #2033

djlint was re-formatting the HTML to put the label element on separate lines. However, this caused there to be whitespace surrounding the text for the field label.

This PR disables djlint for the form's label elements and removes the whitespace. See djlint docs on ignoring code.

The built-in spaceless tag from Django was close to what we needed except that it doesn't remove whitespace between tags and text.

github-actions[bot] commented 4 months ago

Coverage report

This PR does not seem to contain any modification to coverable code.