Telephone field does not support setting a custom size of the input field

Created on 7 July 2015, almost 9 years ago
Updated 16 May 2024, about 1 month ago

Problem/Motivation

The size (a.k.a. width or length) of other textfields can be controlled with a field setting, but telephone doesn't have this option... I request adding it.

I know you can do this with CSS, but often the node edit forms are displayed using the admin theme which makes it harder to add CSS to customize them.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
TelephoneΒ  β†’

Last updated about 1 month ago

Created by

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia Purencool

    Applied changes in comment #78 to the 10.1.x branch of Drupal and then added the remarks made in #81.

     ../vendor/bin/phpunit modules/telephone/tests/*
    PHPUnit 9.5.28 by Sebastian Bergmann and contributors.
    
    Testing /app/build/core/modules/telephone/tests/src
    .............                                                     13 / 13 (100%)
    
    Time: 02:18.388, Memory: 10.00 MB
    
    OK (13 tests, 133 assertions)
    
  • last update about 1 year ago
    29,377 pass, 1 fail
  • πŸ‡¦πŸ‡ΊAustralia Purencool

    Applied changes in comment #78 to the 10.1.x branch of Drupal and then added the remarks made in #81. Also included updated tests for Drupal 6 phone field widget migration.

     ../vendor/bin/phpunit ./modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php
    PHPUnit 9.5.28 by Sebastian Bergmann and contributors.
    
    Testing Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldWidgetSettingsTest
    .                                                                   1 / 1 (100%)
    
    Time: 00:14.362, Memory: 10.00 MB
    
    OK (1 test, 42 assertions)
    
     ../vendor/bin/phpunit modules/telephone/tests/*
    PHPUnit 9.5.28 by Sebastian Bergmann and contributors.
    
    Testing /app/build/core/modules/telephone/tests/src
    .............                                                     13 / 13 (100%)
    
    Time: 02:20.311, Memory: 10.00 MB
    
    OK (13 tests, 133 assertions)
    
  • last update about 1 year ago
    29,378 pass
  • Status changed to Needs review about 1 year ago
  • Status changed to Needs work about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Issue summary can be updated to include the default issue default.

    Also this will need an upgrade path as it is adding a new config setting to existing fields. Upgrade path should have a simple test case also.

    Thanks.

  • πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

    Added the template to the issue summary, still needs filling in

  • Assigned to Purencool
  • Issue was unassigned.
  • πŸ‡¦πŸ‡ΊAustralia Purencool
  • last update 6 months ago
    Build Successful
Production build 0.69.0 2024