- 🇦🇺Australia Stefan Lehmann
Thank you marcoka. You lead me onto the right track. Here a slightly improved code.
/** * Implements hook_theme_suggestions_HOOK_alter(). */ function THEME_NAME_theme_suggestions_form_element_alter(array &$suggestions, array $variables) { if (isset($variables['element']['#attributes']['twig-suggestion']) && $variables['element']['#attributes']['twig-suggestion'] == 'rating-input') { // Radix overrides the "rate" modules theme suggestion // for the rating input fields with "form_element__radio" // so we're overriding this again in the sub theme. $suggestions[] = 'form_element__rating'; } }
Thanks for the work guys, since 4.x is not actively maintained I'd appreciate a MR, thanks
- 🇦🇺Australia Stefan Lehmann
This fix is for a sub theme not for the Radix base theme.
I'm not sure what would have to be done to fix this issue in the base theme without having any side effects for all the other sub themes. It might very well be that the "Rate" module is at fault here.
- Status changed to Closed: outdated
6 months ago 8:05am 21 June 2024