@@ -17,10 +17,6 @@ export const StyledLink = styled(Link)`
1717
1818export const RowContainer = styled . section `
1919 position: relative;
20- &:hover .arrow {
21- opacity: 2;
22- pointer-events: auto;
23- }
2420` ;
2521
2622export const RowTitle = styled . h2 `
@@ -40,7 +36,7 @@ export const CardsViewport = styled.div<{ width: number }>`
4036
4137export const CardsWrapper = styled ( motion . div ) `
4238 display: flex;
43- gap: ${ ( props ) => props . theme . space [ 7 ] } ;
39+ gap: ${ ( props ) => props . theme . space [ 6 ] } ;
4440` ;
4541
4642export const ArrowButton = styled . button `
@@ -55,9 +51,9 @@ export const ArrowButton = styled.button`
5551 width: 48px;
5652 height: 64px;
5753 cursor: pointer;
58- opacity: 0;
59- pointer-events: none;
60- transition: opacity 0.2s;
54+ opacity: 0; /* Default: hidden */
55+ pointer-events: none; /* Default: not clickable */
56+ transition: opacity 0.2s, background-color 0.2s; /* Add background-color to transition */
6157 border-radius: ${ ( props ) => props . theme . borderRadius [ 1 ] } ;
6258 &.left {
6359 left: -2rem;
@@ -66,12 +62,19 @@ export const ArrowButton = styled.button`
6662 right: -1.5rem;
6763 }
6864 &:hover {
69- backgroundcolor : ${ ( props ) => props . theme . colors . primaryLight } ;
70-
65+ background-color : ${ ( props ) => props . theme . colors . primaryLight } ;
66+ color: ${ ( props ) => props . theme . colors . buttonText } ;
7167 }
7268 &.active {
73- opacity: 1;
74- pointer-events: auto;
69+ opacity: 0.3; /* Subtly visible when active */
70+ pointer-events: auto; /* Clickable when active */
71+ &:hover {
72+ opacity: 1; /* Fully visible on hover when active */
73+ }
74+ }
75+ &:disabled {
76+ opacity: 0; /* Completely hidden when disabled */
77+ pointer-events: none; /* Not clickable when disabled */
7578 }
7679` ;
7780
0 commit comments