diff --git a/.changeset/proud-impalas-flash.md b/.changeset/proud-impalas-flash.md new file mode 100644 index 00000000000..c190c8b8943 --- /dev/null +++ b/.changeset/proud-impalas-flash.md @@ -0,0 +1,5 @@ +--- +'@keystone-ui/segmented-control': patch +--- + +Fixed segmented-control focus style. diff --git a/design-system/packages/segmented-control/src/SegmentedControl.tsx b/design-system/packages/segmented-control/src/SegmentedControl.tsx index eaba43e799f..d47a66f5976 100644 --- a/design-system/packages/segmented-control/src/SegmentedControl.tsx +++ b/design-system/packages/segmented-control/src/SegmentedControl.tsx @@ -124,10 +124,6 @@ export const SegmentedControl = ({ For the shape of the `authenticatedItem` prop, please see the [Navigation Props](#navigation-props) section above. ```tsx diff --git a/packages/keystone/src/admin-ui/components/Navigation.tsx b/packages/keystone/src/admin-ui/components/Navigation.tsx index 0ad56052f51..781855831ad 100644 --- a/packages/keystone/src/admin-ui/components/Navigation.tsx +++ b/packages/keystone/src/admin-ui/components/Navigation.tsx @@ -125,7 +125,7 @@ const PopoverLink = ({ children, ...props }: AllHTMLAttributes & { +export type NavigationContainerProps = Partial> & { children: ReactNode; }; @@ -139,7 +139,7 @@ export const NavigationContainer = ({ authenticatedItem, children }: NavigationC justifyContent: 'center', }} > - {authenticatedItem.state === 'authenticated' && ( + {authenticatedItem?.state === 'authenticated' && ( )}