eBay MIND Patterns
  • Introduction
  • Messaging
    • Alert Dialog
    • Confirm Dialog
    • File Preview Card
    • Form Validation
    • Inline Notice
    • Input Meter
    • Input Validation
    • Page Notice
    • Star Rating (static)
    • Time
    • Toast Dialog
    • Tourtip
  • Input
    • Button
    • Checkbox
    • Chips Combobox
    • Combobox
    • Date Picker
    • File Input
    • Input Dialog
    • Listbox
    • Listbox Button
    • Menu
    • Menu Button
    • Phone Input
    • Radio
    • Select
    • Star Rating (interactive)
    • Switch
    • Toggle Button
    • Toggle Button Group
  • Navigation
    • Breadcrumbs
    • Fake Menu Button
    • Fake Tabs
    • Link
    • Pagination
    • Skip Navigation
    • Tile
  • Disclosure
    • Accordion
    • Carousel
    • Lightbox Dialog
    • Details
    • Flyout
    • Footnote
    • Infotip Button
    • Panel Dialog
    • Pulldown List
    • Segmented Buttons
    • Tabs
    • Tooltip
  • Structure
    • Description List
    • Form
    • Heading
    • Image
    • Item Tile
    • Layout Grid
    • Region
    • Table
    • Table Cell
  • Techniques
    • Active Descendant
    • Ambiguous Label
    • Background Icon
    • Keyboard Trap
    • Live Region
    • Offscreen Text
    • Roving Tabindex
    • Skip to Main Content
    • Alternative Text
  • Anti-Patterns
    • Disabling Pinch-to-Zoom
    • Hand Cursor on Buttons
    • JavaScript HREF
    • Layout Table
    • Mouse Hover on Static Elements
    • Open New Window
    • Setting Focus on Page Load
    • Tabindex-itis
    • Title Tooltip
  • Appendix
    • ARIA Essentials
    • Checklist
    • FAQ
    • Keyboard Interface
    • Known Issues
    • Legacy Patterns
      • Fullscreen Dialog
    • MIND Pattern Template
    • Pattern Naming Scheme
    • References
    • Utilities
Powered by GitBook
On this page
  • Screenshots
  • Introduction
  • Working Examples
  • Terminology
  • Best Practices
  • Interaction Design
  • Developer Guide
  1. Input

Phone Input

A composite component that allows for phone number input.

PreviousMenu ButtonNextRadio

Last updated 3 months ago

Screenshots

Introduction

The phone input pattern is a progressive enhancement of a textbox that provides as you type phone pattern for country. The country is selected with listbox button.

Working Examples

Terminology

Phone Input: The pattern as a whole, a composite component containing a listbox button and a textbox.

Listbox Button: The button that opens listbox of countries.

Textbox: A regular HTML text (type=tel)

Country code: The telephone dialing code of a country (e.g. +1 for United States of America)

Phone number: The telephone number excluding the country code.

Best Practices

Phone input group could have an accessible label.

Textbox must have an accessible label.

Textbox should not be split to multiple input boxes.

Textbox can have an attribute autocomplete=tel-national. While autocomplete is a promising technique for supporting personalization in HTML, support for this in AT is fairly limited.

Interaction Design

This section provides interaction design for keyboard, screen reader & pointing devices.

Keyboard

The button must be keyboard focusable.

Listbox button and textbox sit in the page's natural tab sequence.

When Listbox button has focus, TAB key must move keyboard focus to textbox.

When textbox has focus, TAB key moves focus to the next interactive element in the page.

Screen Reader

Field set (group label) must be announced (e.g. Phone number).

Listbox button label must be announced (e.g. Country code USA +1, Country code UK +44).

Listbox button state must be announced (e.g. expanded or collapsed).

Textbox label must be announced (e.g. 'phone number').

Pointer

Clicking any listbox item must activate that item.

Developer Guide

This section is not yet available.

Experience the pattern in action on our companion website.

View a fully styled example in our .

Listbox button label must have an accessible label. Check best practices.

eBay MIND Patterns examples
eBay Skin CSS framework
listbox button
Screenshot of expanded phone input