Skip to content

Commit

Permalink
feat: target slider styles
Browse files Browse the repository at this point in the history
  • Loading branch information
josuesantamaria committed Dec 6, 2024
1 parent a07beeb commit b5abdff
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/app/StoriesSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ const SliderContainer = styled.section`
}
`;

const organizationArrowHoverStyles = {
Target: `
fill: #cc0000;
`
}

const LeftArrow = styled.button`
background: #fff;
border: 0;
Expand All @@ -55,7 +61,7 @@ const LeftArrow = styled.button`
left: -25px;
padding: 11px;
position: absolute;
top: calc(50% - 15px);
top: calc(50% - 22.5px);
width: 45px;
z-index: 10;
Expand All @@ -64,7 +70,14 @@ const LeftArrow = styled.button`
}
&:hover {
background-color: #fff;
cursor: pointer;
path {
${props => organizationArrowHoverStyles[props.organizationName] || `
fill: #000000;
`}
}
}
`;

Expand All @@ -78,7 +91,7 @@ const RightArrow = styled.button`
padding: 11px;
position: absolute;
right: -25px;
top: calc(50% - 15px);
top: calc(50% - 22.5px);
width: 45px;
z-index: 10;
Expand All @@ -87,7 +100,14 @@ const RightArrow = styled.button`
}
&:hover {
background-color: #fff;
cursor: pointer;
path {
${props => organizationArrowHoverStyles[props.organizationName] || `
fill: #000000;
`}
}
}
`;

Expand Down Expand Up @@ -492,6 +512,7 @@ const StoriesSlider = ({ filters = {}, organizationId, organizationName, stories
aria-label="Previous"
type="button"
onClick={onPrev}
organizationName={organizationName}
style={{ display: slideLayout.left ? "block" : "none" }}
>
<svg
Expand All @@ -511,6 +532,7 @@ const StoriesSlider = ({ filters = {}, organizationId, organizationName, stories
aria-label="Next"
type="button"
onClick={onNext}
organizationName={organizationName}
style={{ display: slideLayout.right ? "block" : "none" }}
>
<svg
Expand Down

0 comments on commit b5abdff

Please sign in to comment.