The wrong class name is generating if taxonomy term Symbol ID field value contains whitespaces

Created on 26 February 2023, over 1 year ago
Updated 17 August 2023, over 1 year ago

If a user creates a new taxonomy term of icon select type and enters the Symbol ID element on the front side will be generated with whitespace. For example, if I create a new taxonomy icon with the Symbol ID = magnifying glass - the list of classes for SVG element will be the next:

<svg class="icon icon--magnifying glass">
  ...
</svg>
I propose to generate the class via Drupal core Html utility helper.
πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine zen1995

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

Comments & Activities

Production build 0.71.5 2024