Merged in feat/LOY-522-move-focus-to-newly-loaded-item (pull request #3452)

feat(LOY-522): Move focus to the newly loaded stay in sidepeek for upcoming and previous stay

* feat(LOY-522): Moved focus to the newly loaded stay in sidepeek for upcoming and previous stay


Approved-by: Anton Gunnarsson
This commit is contained in:
Emma Zettervall
2026-01-20 08:10:42 +00:00
parent ba42690261
commit 8b56fa84e7
5 changed files with 55 additions and 18 deletions

View File

@@ -18,6 +18,7 @@ interface SidePeekSelfControlledProps extends React.PropsWithChildren {
title: string
isOpen: boolean
onClose: () => void
sidePeekSEO?: boolean
}
export default function SidePeekSelfControlled({
@@ -25,6 +26,7 @@ export default function SidePeekSelfControlled({
isOpen,
onClose,
title,
sidePeekSEO = true,
}: SidePeekSelfControlledProps) {
const intl = useIntl()
@@ -81,8 +83,7 @@ export default function SidePeekSelfControlled({
</Dialog>
</Modal>
</ModalOverlay>
<SidePeekSEO title={title}>{children}</SidePeekSEO>
{sidePeekSEO && <SidePeekSEO title={title}>{children}</SidePeekSEO>}
</>
)
}