Skip to content

Commit d7c69d4

Browse files
bekospkozlowski-opensource
authored andcommitted
demo(rating): replace badge with label
Badges in BS3 don't have contextual styles anymore. Closes angular-ui#1290
1 parent 0cc532d commit d7c69d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rating/docs/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div ng-controller="RatingDemoCtrl">
22
<h4>Default</h4>
33
<rating value="rate" max="max" readonly="isReadonly" on-hover="hoveringOver(value)" on-leave="overStar = null"></rating>
4-
<span class="badge" ng-class="{'badge-warning': percent<30, 'badge-info': percent>=30 && percent<70, 'badge-success': percent>=70}" ng-show="overStar && !isReadonly">{{percent}}%</span>
4+
<span class="label" ng-class="{'label-warning': percent<30, 'label-info': percent>=30 && percent<70, 'label-success': percent>=70}" ng-show="overStar && !isReadonly">{{percent}}%</span>
55
<pre>Rate: <b>{{rate}}</b> - Readonly is: <i>{{isReadonly}}</i> - Hovering over: <b>{{overStar || "none"}}</b></pre>
66
<div>
77
<button class="btn btn-sm btn-danger" ng-click="rate = 0" ng-disabled="isReadonly">Clear</button>

0 commit comments

Comments
 (0)