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.

CommentFileSizeAuthor
#2 fix_improperly_formatted_tel_field-2465047-2.patch531 bytesAnonymous (not verified)
#1 fix_improperly_formatted_tel_field-2465047-1.patch962 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Anonymous’s picture

Ignore 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.