Make WordPress Core


Ignore:
Timestamp:
10/21/2024 07:53:10 PM (12 months ago)
Author:
joedolson
Message:

Menus: A11y: Set the parent and order using select fields.

Add select inputs to allow users to set the parent and position of items in the menu settings. Fixes a significant problem for screen reader users that makes updating menus extremely tedious, since the options for moving items do not explicitly set a position. This is also a significant improvement for all users manipulating large menus.

This could easily be considered an enhancement, but while it is a minor enhancement for most users, it is transformative for screen reader users in managing menus, moving that interface from nearly unusable to very manageable.

Props javad2000, audrasjb, juliemoynat, williamalexander, rcreators, milamj, joedolson.
Fixes #43305.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/nav-menus.css

    r58747 r59265  
    828828}
    829829
    830 .menu-item-settings .description-thin,
    831 .menu-item-settings .description-wide {
    832     margin-right: 10px;
    833     float: left;
    834 }
    835 
    836 .description-thin {
    837     width: calc(50% - 5px);
    838 }
    839 
    840 .menu-item-settings .description-thin + .description-thin {
    841     margin-right: 0;
    842 }
    843 
    844 .description-wide {
    845     width: 100%;
     830.description-group {
     831    display: flex;
     832    column-gap: 10px;
     833}
     834
     835.description-group > * {
     836    flex-grow: 1;
    846837}
    847838
     
    952943
    953944    .menu-item-bar .menu-item-handle,
    954     .menu-item-settings,
    955     .description-wide {
     945    .menu-item-settings {
    956946        width: auto;
    957947    }
     
    961951    }
    962952
    963     .menu-item-settings .description-thin,
    964     .menu-item-settings .description-wide {
    965         width: 100%;
     953    .menu-item-settings .description-group {
     954        display: block;
    966955    }
    967956
Note: See TracChangeset for help on using the changeset viewer.