D7: Don't prefill Hostname field with www.example.com

Created on 14 June 2023, almost 2 years ago
Updated 27 June 2023, almost 2 years ago

Problem/Motivation

This issue was reported to Quant by a user.

The Hostname field on the main configuration page (/admin/config/services/quant) is prefilled with www.example.com. Screen reader users don't know this is prefilled without explicitly checking it, so the resulting value can get be a combination of what they typed in and what the prefilled value is.

Note that this is not an issue in the D9+ version as the field is not prefilled.

Steps to reproduce

  1. Using a screen reader, go to /admin/config/services/quant
  2. Go through the fields to the Hostname field
  3. Fill in the value
  4. Result: The value you filled in will be added to the prefilled www.example.com text
  5. Expected: Only the value you filled in will be in the field

Proposed resolution

Remove the prefilled text. The description already mentions www.example.com as an example so not sure if it needs anything else.

Remaining tasks

  1. Update code
  2. Review and test
  3. Commit :)

User interface changes

The www.example.com text won't be in the Hostname field by default.

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024