🩹(frontend) fix visual regression on Ratings buttons
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.
This commit is contained in:
committed by
aleb_the_flash
parent
edf29076ba
commit
9fc5681137
@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'
|
|||||||
import { styled, VStack } from '@/styled-system/jsx'
|
import { styled, VStack } from '@/styled-system/jsx'
|
||||||
import { usePostHog } from 'posthog-js/react'
|
import { usePostHog } from 'posthog-js/react'
|
||||||
import { PostHog } from 'posthog-js'
|
import { PostHog } from 'posthog-js'
|
||||||
|
import { Button as RACButton } from 'react-aria-components'
|
||||||
|
|
||||||
const Card = styled('div', {
|
const Card = styled('div', {
|
||||||
base: {
|
base: {
|
||||||
@@ -170,7 +171,7 @@ const RateQuality = ({
|
|||||||
<H lvl={3}>{t('question')}</H>
|
<H lvl={3}>{t('question')}</H>
|
||||||
<Bar>
|
<Bar>
|
||||||
{[...Array(maxRating)].map((_, index) => (
|
{[...Array(maxRating)].map((_, index) => (
|
||||||
<Button
|
<RACButton
|
||||||
key={index}
|
key={index}
|
||||||
onPress={() => handleRatingClick(index + 1)}
|
onPress={() => handleRatingClick(index + 1)}
|
||||||
className={ratingButtonRecipe({
|
className={ratingButtonRecipe({
|
||||||
@@ -179,7 +180,7 @@ const RateQuality = ({
|
|||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{index + 1}
|
{index + 1}
|
||||||
</Button>
|
</RACButton>
|
||||||
))}
|
))}
|
||||||
</Bar>
|
</Bar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user