From 3df8c0349b8b87cc42c9917c5e9a2943ed65a085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20=C3=87ivici?= Date: Tue, 19 Jun 2018 13:13:59 +0300 Subject: [PATCH] Remove pointer from readonly stars --- src/components/rating/Rating.css | 3 ++- src/components/rating/Rating.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/rating/Rating.css b/src/components/rating/Rating.css index ed844d7d2c..7844e2752a 100644 --- a/src/components/rating/Rating.css +++ b/src/components/rating/Rating.css @@ -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; } \ No newline at end of file diff --git a/src/components/rating/Rating.js b/src/components/rating/Rating.js index 90155ce9c5..562b116434 100644 --- a/src/components/rating/Rating.js +++ b/src/components/rating/Rating.js @@ -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();