Skip to content

Commit

Permalink
Remove pointer from readonly stars
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici authored and Çağatay Çivici committed Jun 19, 2018
1 parent c08644d commit 3df8c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/rating/Rating.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
font-size: 1.25em;
}

.ui-rating.ui-state-disabled {
.ui-rating.ui-state-disabled a,
.ui-rating.ui-rating-readonly a {
cursor: default;
}
2 changes: 1 addition & 1 deletion src/components/rating/Rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class Rating extends Component {
}

render() {
let className = classNames('ui-rating', this.props.className, {'ui-state-disabled': this.props.disabled});
let className = classNames('ui-rating', this.props.className, {'ui-state-disabled': this.props.disabled, 'ui-rating-readonly': this.props.readonly});
let cancelIcon = this.renderCancelIcon();
let stars = this.renderStars();

Expand Down

0 comments on commit 3df8c03

Please sign in to comment.