Skip to content

Commit adc0a25

Browse files
Remove redundant CSS classes
1 parent bdf6e65 commit adc0a25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/react/src/hero/hero.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ const variants = cva({
5050
standard: [roundedMediaCorners, oneColumnLayout],
5151
'full-bleed': [
5252
oneColumnLayout,
53-
// biome-ignore lint/nursery/useSortedClasses: biome is unable to sort the custom classes for 3xl and 4xl breakpoints
54-
'*:data-[slot="media"]:h-70 sm:*:data-[slot="media"]:h-[25rem] lg:*:data-[slot="media"]:h-[35rem] xl:*:data-[slot="media"]:h-[40rem] 2xl:*:data-[slot="media"]:h-[42rem] 3xl:*:data-[slot="media"]:h-[48rem] 4xl:*:data-[slot="media"]:h-[53rem]',
5553
// Match the heights of the <Media> wrapper for the Media content (e.g. image, VideoLoop, video etc.)
5654
// biome-ignore lint/nursery/useSortedClasses: biome is unable to sort the custom classes for 3xl and 4xl breakpoints
57-
'*:data-[slot="media"]:*:h-70 sm:*:data-[slot="media"]:*:h-[25rem] lg:*:data-[slot="media"]:*:h-[35rem] xl:*:data-[slot="media"]:*:h-[40rem] 2xl:*:data-[slot="media"]:*:h-[42rem] 3xl:*:data-[slot="media"]:*:h-[48rem] 4xl:*:data-[slot="media"]:*:h-[53rem]',
55+
'*:data-[slot="media"]:*:h-70 sm:*:data-[slot="media"]:*:h-[25rem] md:*:data-[slot="media"]:*:h-[30rem] lg:*:data-[slot="media"]:*:h-[35rem] xl:*:data-[slot="media"]:*:h-[40rem] 2xl:*:data-[slot="media"]:*:h-[42rem] 3xl:*:data-[slot="media"]:*:h-[48rem] 4xl:*:data-[slot="media"]:*:h-[53rem]',
5856
// Position the media and carousel content to fill the entire viewport width
5957
'*:data-[slot="media"]:*:absolute *:data-[slot="media"]:*:left-0',
6058
'*:data-[slot="carousel"]:*:absolute *:data-[slot="carousel"]:*:left-0',

0 commit comments

Comments
 (0)