Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
What is the purpose of this code?
if ($element['#size'] >= 15) {
$element['#size'] = '';
$element['#attributes']['class'] = isset($element['#attributes']['class']) ? "{$element['#attributes']['class']} fluid" : "fluid";
}
It makes all my textfields tiny. Are you meant to say input.fluid { width: 300px }
? If so, why not just do it if the size is not set, or the size is the default (60 i think?)