Skip to content

Commit eefca6f

Browse files
authored
[6.x] Stop the root page icon being an empty Tab stop (#16092)
1 parent 076683e commit eefca6f

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎resources/css/elements/base.css‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@
114114
}
115115

116116
/* e.g. >> /cp/collections, when you tab to the title, and /cp/collections/pages when tabbing through the tree text. Avoid elements where border-radius has already been set, e.g. "Create Entry" button */
117-
.main-content a:not([class*="rounded"]),
118-
/* e.g. >> /cp/collections/pages, tabbing through the home icon. Be careful not to carpet bomb this e.g. don't want to affect Bard buttons. */
119-
.page-tree .v-popper--has-tooltip {
117+
.main-content a:not([class*="rounded"]) {
120118
&:focus-visible {
121119
--focus-outline-offset: 4px;
122120
@apply rounded-xs;

‎resources/js/components/structures/Branch.vue‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
<div class="flex flex-1 items-center px-1.5 text-xs leading-normal">
77
<div class="flex gap-2 sm:gap-3 grow items-center py-3" @click="$emit('branch-clicked', page)">
88
<ui-status-indicator :status="page.status" v-tooltip="getStatusTooltip()" />
9-
<ui-icon v-if="isRoot" name="home" class="size-4" v-tooltip="__('This is the root page')" />
9+
<template v-if="isRoot">
10+
<!-- Out of the Tab order: Chrome would otherwise make it an empty stop, because the tooltip listens for focus -->
11+
<ui-icon name="home" class="size-4" tabindex="-1" v-tooltip="__('This is the root page')" />
12+
<span class="sr-only">{{ __('This is the root page') }}</span>
13+
</template>
1014
<a
1115
@click.prevent="$emit('edit', $event)"
1216
:class="{ 'text-sm font-medium is-top-level-branch': isTopLevelBranch }"

0 commit comments

Comments
 (0)