Skip to content

Commit 0e39807

Browse files
Fix more issues.
1 parent 404cf40 commit 0e39807

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,6 @@ PropTypes.bool
231231

232232
Defaults to `false`. Setting `isVertical` to `true` will render vertical carousal.
233233

234-
#### verticalArrowPadding
235-
```
236-
PropTypes.number
237-
```
238-
239-
Defaults to `0`. This prop can used to customize the positioning of vertical arrows in case of a vertical carousal.
240-
241234
Tests:
242235
----------------
243236

src/carousel.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
}
7878

7979
.carousel-top-arrow {
80-
top: 23px;
80+
top: 75px;
8181
}
8282

8383
.carousel-bottom-arrow {
84-
bottom: 23px;
84+
bottom: 75px;
8585
}
8686

8787
.carousel-top-arrow {

src/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ export default class Carousel extends Component {
7979
selectedSlide: PropTypes.object
8080
}),
8181
dir: PropTypes.oneOf(['ltr', 'rtl']),
82-
isVertical: PropTypes.bool,
83-
verticalArrowPadding: PropTypes.number
82+
isVertical: PropTypes.bool
8483
};
8584
}
8685

@@ -110,8 +109,7 @@ export default class Carousel extends Component {
110109
easing: 'ease-in-out',
111110
style: {},
112111
dir: 'ltr',
113-
isVertical: false,
114-
verticalArrowPadding: 0
112+
isVertical: false
115113
};
116114
}
117115

src/stories/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const verticalNonInfiniteWithCellPaddingWithDefaultArrows = () =>
8181

8282
export const verticalNonInfiniteButtonsWithCellPaddingWithCustomArrows = () =>
8383
<Carousel height='450px' width='450px' cellPadding={ 5 } infinite={ false } arrows={ false }
84-
dots={ false } isVertical={ true } verticalArrowPadding={ 30 } controls={ [{
84+
dots={ false } isVertical={ true } controls={ [{
8585
component: CustomArrows,
8686
props: { overrideArrowStyle: { border: 'none', background: 'none' }, topArrowImage: <UpArrow/>, bottomArrowImage: <DownArrow/>, arrowDivStyle: { transform: 'translate(-450px, 196px)' } }
8787
}] }>

0 commit comments

Comments
 (0)