When enabling or disabling a block, don't move the focus to the top of the page

Created on 15 May 2018, over 6 years ago
Updated 2 June 2023, over 1 year ago

A follow-up to #1848940: When enabling or disabling a View, don't move the cursor to the top of the page β†’ to address a similar issue in the Block UI.

Problem/Motivation

When a user enables, disables, or removes a block, a full page refresh happens. This causes the keyboard focus position to return to the start of the page. If a keyboard-only user wants to work on several blocks, there's a lot of work to keep tabbing through the form to the block you are interested in.

Proposed resolution

We can reduce the amount of effort needed from a keyboard-only user, by using AJAX to dynamically update the page whenever a block is enabled, disabled, or removed. ViewsListBuilder already does this, and it maintians the keyboard focus position.

Use AJAX for the block operations (enable, disable, remove).
Make it preserve keyboard focus position, like ViewsListBuilder.

Remaining tasks

TBD.

User interface changes

Make some features of the block UI (block operations like enable, disable, remove) behave without a page refresh, and preserving keyboard focus position. Intended to reduce effort needed by keyboard / screen-reader users.

API changes

TBD.

Data model changes

None expected.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
BlockΒ  β†’

Last updated about 19 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom andrewmacpherson

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

Not all content is available!

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

Production build 0.71.5 2024