From 9fc56811375bc829e635c8bf072aa0a79c5cdadc Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 20 Feb 2025 18:51:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(frontend)=20fix=20visual=20regress?= =?UTF-8?q?ion=20on=20Ratings=20buttons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Visual regression was introduced probably by a change on button style. As this button is quite different than the usual one, remove its inheritance from the primitive ones. --- src/frontend/src/features/rooms/components/Rating.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/features/rooms/components/Rating.tsx b/src/frontend/src/features/rooms/components/Rating.tsx index f09556d2..b910bb25 100644 --- a/src/frontend/src/features/rooms/components/Rating.tsx +++ b/src/frontend/src/features/rooms/components/Rating.tsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next' import { styled, VStack } from '@/styled-system/jsx' import { usePostHog } from 'posthog-js/react' import { PostHog } from 'posthog-js' +import { Button as RACButton } from 'react-aria-components' const Card = styled('div', { base: { @@ -170,7 +171,7 @@ const RateQuality = ({ {t('question')} {[...Array(maxRating)].map((_, index) => ( - + ))}