Skip to content

Commit

Permalink
fix: new slider items height
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx committed Oct 15, 2024
1 parent ec2f502 commit 0b4b2f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/blocks/SliderNew/Slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ $dotSize: 8px;
}
}

#{$root}__slide-item {
width: 100%;
height: 100%;
}

&__arrow {
position: absolute;
top: -2px;
Expand Down
7 changes: 6 additions & 1 deletion src/blocks/SliderNew/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ export const SliderNewBlock = ({
{React.Children.map(children, (elem, index) => (
<SwiperSlide className={b('slide')} key={index}>
{({isVisible}) => (
<div aria-hidden={!isA11yControlHidden && !isVisible}>{elem}</div>
<div
className={b('slide-item')}
aria-hidden={!isA11yControlHidden && !isVisible}
>
{elem}
</div>
)}
</SwiperSlide>
))}
Expand Down

0 comments on commit 0b4b2f3

Please sign in to comment.