diff --git a/frontend/src/component/common/Notifications/Notifications.tsx b/frontend/src/component/common/Notifications/Notifications.tsx index 437a93e32d..ed3b525c4b 100644 --- a/frontend/src/component/common/Notifications/Notifications.tsx +++ b/frontend/src/component/common/Notifications/Notifications.tsx @@ -43,7 +43,7 @@ const StyledTypography = styled(Typography)(({ theme }) => ({ })); const StyledPaper = styled(Paper)(({ theme }) => ({ - minWidth: '400px', + width: '400px', boxShadow: theme.boxShadows.popup, borderRadius: `${theme.shape.borderRadiusLarge}px`, position: 'absolute', @@ -71,6 +71,15 @@ const StyledHeaderTypography = styled(Typography)(({ theme }) => ({ fontSize: theme.fontSizes.smallerBody, })); +const StyledIconButton = styled(IconButton)(({ theme }) => ({ + '&:focus-visible': { + outlineStyle: 'solid', + outlineWidth: 2, + outlineColor: theme.palette.primary.main, + borderRadius: '100%', + }, +})); + export const Notifications = () => { const [showNotifications, setShowNotifications] = useState(false); const { notifications, refetchNotifications } = useNotifications({ @@ -162,16 +171,17 @@ export const Notifications = () => { return ( - setShowNotifications(!showNotifications)} data-testid="NOTIFICATIONS_BUTTON" + disableFocusRipple > } /> - + { onClick={() => setShowUnread(!showUnread) } + checked={showUnread} />