diff --git a/frontend/src/component/feedbackNew/FeedbackComponent.tsx b/frontend/src/component/feedbackNew/FeedbackComponent.tsx index 96a6822501..9c49f2c0bd 100644 --- a/frontend/src/component/feedbackNew/FeedbackComponent.tsx +++ b/frontend/src/component/feedbackNew/FeedbackComponent.tsx @@ -22,6 +22,7 @@ import type { FeedbackData, FeedbackMode } from './FeedbackContext'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; import { useUiFlag } from 'hooks/useUiFlag'; import useUserType from './useUserType'; +import { BaseModal } from 'component/common/SidebarModal/SidebarModal'; export const ParentContainer = styled('div')(({ theme }) => ({ position: 'relative', @@ -150,7 +151,7 @@ const StyledScoreValue = styled('label')(({ theme }) => ({ background: theme.palette.primary.main, color: theme.palette.primary.contrastText, }, - '& input:hover + span': { + '& input:is(:hover, :focus) + span': { outline: '2px solid', outlineOffset: 2, outlineColor: theme.palette.primary.main, @@ -278,192 +279,184 @@ export const FeedbackComponent = ({ }; return ( - - closeFeedback()}> - - - - - - - - - Help us improve Unleash - - - - - {feedbackData.title} - - - {[1, 2, 3, 4, 5, 6, 7].map( - (score) => ( - - - {score} - - ), - )} - - - - Very difficult - - - Very easy - - - + + + closeFeedback()}> + + + + + + + + Help us improve Unleash + + + + {feedbackData.title} + + + {[1, 2, 3, 4, 5, 6, 7].map((score) => ( + + + {score} + + ))} + + + + Very difficult + + + Very easy + + + - {feedbackComments !== false && - feedbackComments.enabled && - feedbackComments.name === - 'withoutComments' ? ( - <> - - - - - - ) : ( - <> - - - {feedbackData.positiveLabel} - - - - - - { - feedbackData.areasForImprovementsLabel - } - - - - - )} + {feedbackComments !== false && + feedbackComments.enabled && + feedbackComments.name === 'withoutComments' ? ( + <> + + + + + + ) : ( + <> + + + {feedbackData.positiveLabel} + + + + + + { + feedbackData.areasForImprovementsLabel + } + + + + + )} - - - Send Feedback - - - Don't ask me again - - } - /> - - - - - - - } - /> + + + Send Feedback + + + Don't ask me again + + } + /> + + + + + + + ); };