Skip to content

Commit 9530e15

Browse files
fix(PDYE-1342): focus y clases courselist para probar en v8 (#738)
Co-authored-by: Javiera Munita <javiera.munita@eclass.cl>
1 parent 0bd083f commit 9530e15

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src/organisms/CourseList/Boxes/BoxTraditional.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,29 @@ export function BoxTraditional({ data, modalPaymentText }: IBoxTraditional): JSX
3030
return (
3131
<CourseBoxContext.Provider value={data}>
3232
<LinkBox
33+
className="linkBoxTraditional"
3334
as="article"
3435
border={vars('borders-light')}
3536
borderRadius={vars('radii-big')}
3637
cursor="pointer"
3738
transition="box-shadow .3s"
3839
_active={cssActive}
3940
_hover={cssActive}
40-
_focus={cssActive}
4141
overflow="hidden"
42+
tabIndex={0}
43+
role="link"
4244
>
4345
<WithRipples enabled={isCourseActive(data.action?.enabled ?? false, data.Profile?.id)}>
4446
<Flex direction="column" justify="space-between" h="100%">
4547
<Box className="CourseList-TraditionalBox">
4648
{!data.hasFinanzeFreezed &&
4749
isCourseActive(data.action?.enabled ?? false, data.Profile?.id) && (
48-
<LinkOverlay href={data.action?.href} isExternal={data.action?.targetBlank} />
50+
<LinkOverlay
51+
href={data.action?.href}
52+
isExternal={data.action?.targetBlank}
53+
tabIndex={-1}
54+
className="linkOverlay"
55+
/>
4956
)}
5057
<Header />
5158
<Section />

src/organisms/CourseList/CourseList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function CourseList({
2626

2727
return (
2828
<Box
29+
className="courseListBox"
2930
display="grid"
3031
gridColumnGap={`${columnGap}rem`}
3132
gridRowGap="1.75rem"

src/organisms/CourseList/components/Footer.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ export function Footer({ modalPaymentText }: Type.FooterProps): JSX.Element | nu
3333
p="1rem"
3434
borderTop="1px solid"
3535
borderTopColor={vars('colors-neutral-platinum')}
36+
tabIndex={0}
37+
className="footerButtonBox"
3638
>
3739
{isCourseActive(action.enabled, Profile?.id) ? (
3840
<>
3941
{hasFinanzeFreezed && modalPaymentText ? (
4042
<Box
43+
className="uno"
4144
color={vars('colors-main-deepSkyBlue')}
4245
backgroundColor="transparent"
4346
fontWeight="500"
@@ -56,6 +59,7 @@ export function Footer({ modalPaymentText }: Type.FooterProps): JSX.Element | nu
5659
</Box>
5760
) : (
5861
<Text
62+
className="dos"
5963
color={vars('colors-main-deepSkyBlue')}
6064
fontWeight="500"
6165
mr={action.hasIcon ? '1.5rem' : '0'}
@@ -70,6 +74,7 @@ export function Footer({ modalPaymentText }: Type.FooterProps): JSX.Element | nu
7074
</>
7175
) : (
7276
<Text
77+
className="tres"
7378
fontWeight="500"
7479
lineHeight="1.172rem"
7580
color={vars('colors-neutral-spanishGrey')}

0 commit comments

Comments
 (0)