Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#33250 closed defect (bug) (fixed)

Customizer Preview iframe: remove the html loading title attribute

Reported by: afercia's profile afercia Owned by: afercia's profile afercia
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.2
Component: Customize Keywords: has-patch
Focuses: ui, accessibility, javascript Cc:

Description

Noticed while testing the Customizer. Sometimes a "Loading ..." title attribute gets added to the html element, for example when checking a Menu Location checkbox:

https://cldup.com/4-TbQc9xLI.png

I'd say it's hardly noticeable and wondering if really useful. If the intent is to show a loading indicator, there are probably better ways to do it. Considering also #24766 would probably make sense to remove this and clean up a bit.

Attachments (3)

customize-preview.js.diff (703 bytes) - added by mehulkaklotar 11 years ago.
Removed html title attribute update on loading and preview.
33250.diff (1.2 KB) - added by mehulkaklotar 11 years ago.
localized variable removed
33250.2.diff (1.2 KB) - added by afercia 10 years ago.

Download all attachments as: .zip

Change History (11)

@mehulkaklotar
11 years ago

Removed html title attribute update on loading and preview.

#1 follow-up: @mehulkaklotar
11 years ago

  • Keywords has-patch added; needs-patch removed

Do we need to remove the localized variable?

'l10n' => array(
    'loading'  => __( 'Loading ...' ),
),

#2 in reply to: ↑ 1 @afercia
11 years ago

Replying to mehulkaklotar:

Do we need to remove the localized variable?

Yes, if it's not used anywhere else :) Sorry, haven't had time to check.

@mehulkaklotar
11 years ago

localized variable removed

#3 @mehulkaklotar
11 years ago

  • Keywords reporter-feedback added

@afercia
10 years ago

#4 @afercia
10 years ago

  • Keywords reporter-feedback removed

Refreshed patch after recent changes.

This ticket was mentioned in Slack in #core-customize by afercia. View the logs.


10 years ago

#6 @afercia
10 years ago

  • Focuses accessibility added
  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to 4.4
  • Type changed from enhancement to defect (bug)

As @ocean90 pointed out, it would be nice to use wp.a11y.speak() to give screen reader users some audible feedback while loading the preview. Changing type to "bug" and moving it into 4.4.

#7 @afercia
10 years ago

  • Keywords needs-refresh removed

Looked a bit into this, I think it would be possible to dispatch a "speak" message from api.Previewer.refresh() but there's always the chance it will be overridden by other messages, for example when moving down/up a widget, etc. I'd rather keep it simple and stick to the original ticket goal.

#8 @afercia
10 years ago

  • Owner set to afercia
  • Resolution set to fixed
  • Status changed from new to closed

In 35391:

Customizer: remove the title attribute from the Preview html element while loading.

Props mehulkaklotar.

Fixes #33250.

Note: See TracTickets for help on using tickets.