Skip to content

Commit

Permalink
Refactor #1051
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Oct 18, 2019
1 parent 006ede9 commit 6734f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ export class Carousel extends Component {

renderBackwardNavigator() {
let isDisabled = (!this.circular || this.props.value.length < this.state.numVisible) && this.getPage() === 0;
let buttonClassName = classNames('p-carousel-prev p-link', {
let buttonClassName = classNames('p-carousel-prev p-button', {
'p-disabled': isDisabled
}),
iconClassName = classNames('p-carousel-prev-icon pi', {
Expand All @@ -623,7 +623,7 @@ export class Carousel extends Component {

renderForwardNavigator() {
let isDisabled = (!this.circular || this.props.value.length < this.state.numVisible) && (this.getPage() === (this.totalDots - 1) || this.totalDots === 0);
let buttonClassName = classNames('p-carousel-next p-link', {
let buttonClassName = classNames('p-carousel-next p-button', {
'p-disabled': isDisabled
}),
iconClassName = classNames('p-carousel-prev-icon pi', {
Expand Down

0 comments on commit 6734f7d

Please sign in to comment.