Skip to content

Commit aba764f

Browse files
committed
fix: on focus hidden sentinel
Signed-off-by: Adam Setch <[email protected]>
1 parent 7870bf2 commit aba764f

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

src/renderer/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const Sidebar: FC = () => {
6767

6868
return (
6969
<Stack
70-
className="fixed left-sidebar -ml-sidebar w-sidebar h-full bg-gitify-sidebar [&_svg]:text-white"
70+
className="fixed w-sidebar h-full bg-gitify-sidebar [&_svg]:text-white"
7171
direction="vertical"
7272
justify="space-between"
7373
>

src/renderer/components/__snapshots__/Sidebar.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/layout/AppLayout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import type { FC, ReactNode } from 'react';
22

33
import { Sidebar } from '../Sidebar';
44

5-
type AppLayoutProps = { children: ReactNode };
5+
interface AppLayoutProps {
6+
children: ReactNode;
7+
}
68

79
/**
810
* AppLayout is the main container for the application.
@@ -16,7 +18,7 @@ export const AppLayout: FC<AppLayoutProps> = ({ children }) => {
1618
};
1719

1820
return (
19-
<div className="flex flex-col min-h-screen bg-gitify-background">
21+
<div className="flex min-h-screen bg-gitify-background">
2022
{/* Hidden focus sentinel; grabs initial focus via callback ref */}
2123
<button
2224
aria-label="initial focus"

src/renderer/components/layout/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { FC, ReactNode } from 'react';
22

33
interface IPage {
44
children: ReactNode;
5-
testId?: string;
5+
testId: string;
66
}
77

88
/**

src/renderer/components/layout/__snapshots__/AppLayout.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)