[wp-trac] [WordPress Trac] #60685: Keyboard focus order mismatch in adminbar in front-end
WordPress Trac
noreply at wordpress.org
Fri May 17 23:34:37 UTC 2024
#60685: Keyboard focus order mismatch in adminbar in front-end
--------------------------------------+----------------------------
Reporter: joedolson | Owner: joedolson
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.6
Component: Toolbar | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note | Focuses: accessibility
--------------------------------------+----------------------------
Changes (by sabernhardt):
* keywords: has-patch => has-patch needs-dev-note
Comment:
I'm not sure about `9999`, but that is probably a better choice than `20`
(or a similarly low number). Maybe it's worth mentioning in the dev chat
(agenda) first.
I tried a version-based priority to confirm that plugin authors could
change it if they do not like where their links appear:
{{{
$special_priority = ( version_compare( $GLOBALS['wp_version'],
'6.6-alpha', '>=' ) ) ? 2 : 100;
add_action( 'admin_bar_menu', 'wpadmin_toolbar_test_link',
$special_priority );
function wpadmin_toolbar_test_link( $wp_admin_bar ) {
$wp_admin_bar->add_node(
array(
'parent' => 'top-secondary',
'id' => 'mylink',
'href' => '#',
'title' => __( 'My Link' ),
)
);
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60685#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list