Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function theme_phone_tel($variables)
in phone.element.inc does not render a properly formatted input field. Specifically, when a Phone field is set to 'Use input type=tel for editing' it renders badly in comparison to other elements, becoming offset from the other elements in the row.
I've fixed this on my site & am attaching a patch for review.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_improperly_formatted_tel_field-2465047-2.patch | 531 bytes | Anonymous (not verified) |
#1 | fix_improperly_formatted_tel_field-2465047-1.patch | 962 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedIgnore the previous patch, it was uploaded by mistake & contains some stuff I was playing around with. This is the correct patch. It simply wraps the input element in a div, which fixes the rendering issue.