[Glitch] Manage focus on navigation
Port bcb8553e01 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
5893554a3a
commit
4cb1bf73c9
21 files changed
+254
-33
No files matched your search
@@ -19,6 +19,7 @@ import { useIdentity } from 'flavours/glitch/identity_context';
|
||||
import { useColumnIndexContext } from '../features/ui/components/columns_area';
|
||||
import { getColumnSkipLinkId } from '../features/ui/components/skip_links';
|
||||
|
||||
import { NavigationFocusTarget } from './navigation_focus_target';
|
||||
import { useAppHistory } from './router';
|
||||
|
||||
export const messages = defineMessages({
|
||||
@@ -285,7 +286,10 @@ export const ColumnHeader: React.FC<Props> = ({
|
||||
<div className={headingClassName}>
|
||||
{backButton}
|
||||
{hasTitle && (
|
||||
<h1 className='column-header__title-wrapper'>
|
||||
<NavigationFocusTarget
|
||||
as='h1'
|
||||
className='column-header__title-wrapper'
|
||||
>
|
||||
{onClick ? (
|
||||
<button
|
||||
onClick={handleTitleClick}
|
||||
@@ -304,7 +308,7 @@ export const ColumnHeader: React.FC<Props> = ({
|
||||
{titleContents}
|
||||
</span>
|
||||
)}
|
||||
</h1>
|
||||
</NavigationFocusTarget>
|
||||
)}
|
||||
|
||||
<div className='column-header__buttons'>
|
||||
|
||||
Reference in new issue
Block a user