diff --git a/src/frontend/src/features/reactions/components/toolbar/ReactionButtonsContainer.tsx b/src/frontend/src/features/reactions/components/toolbar/ReactionButtonsContainer.tsx index 507ab2ff..19737d76 100644 --- a/src/frontend/src/features/reactions/components/toolbar/ReactionButtonsContainer.tsx +++ b/src/frontend/src/features/reactions/components/toolbar/ReactionButtonsContainer.tsx @@ -8,10 +8,11 @@ import { import { styled } from '@/styled-system/jsx' import { useReactionsToolbar } from '../../hooks/useReactionsToolbar' import { useIsMobile } from '@/utils/useIsMobile' -import { css } from '@/styled-system/css' import { useSize } from '@/features/rooms/livekit/hooks/useResizeObserver' import { RiArrowLeftSLine, RiArrowRightSLine } from '@remixicon/react' import { Button } from '@/primitives' +import { ReactionsKeyboardNavigation } from './ReactionsKeyboardNavigation' +import { FocusScope } from '@react-aria/focus' import { CONTROL_BAR_REGION_ID } from '@/features/layout/components/ControlBarRegion' import { REACTIONS_TOGGLE_ID } from '../ReactionsToggle' @@ -42,18 +43,20 @@ const StyledContainer = styled('div', { }, }) -const scrollViewport = css({ - display: 'flex', - gap: '0.2rem', - overflowX: 'auto', - padding: '0.19rem', - scrollBehavior: 'smooth', - minWidth: 0, - flex: '1 1 auto', - scrollbarWidth: 'none', - '&::-webkit-scrollbar': { display: 'none' }, - '& > *': { - flexShrink: 0, +const StyledScrollViewport = styled('div', { + base: { + display: 'flex', + gap: '0.2rem', + overflowX: 'auto', + padding: '0.19rem', + scrollBehavior: 'smooth', + minWidth: 0, + flex: '1 1 auto', + scrollbarWidth: 'none', + '&::-webkit-scrollbar': { display: 'none' }, + '& > *': { + flexShrink: 0, + }, }, }) @@ -182,29 +185,40 @@ export const ReactionButtonsContainer = ({ } > {overflowing && ( - +
)} -