Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 76b485c

Browse files
bekospkozlowski-opensource
authored andcommitted
demo(rating): replace badge with label
Badges in BS3 don't have contextual styles anymore.
1 parent 7e60284 commit 76b485c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/rating/docs/demo.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div ng-controller="RatingDemoCtrl" class="well well-small">
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

66
<pre style="margin:15px 0;">Rate: <b>{{rate}}</b> - Readonly is: <i>{{isReadonly}}</i> - Hovering over: <b>{{overStar || "none"}}</b></pre>
77

8-
<button class="btn btn-small btn-danger" ng-click="rate = 0" ng-disabled="isReadonly">Clear</button>
9-
<button class="btn btn-small" ng-click="isReadonly = ! isReadonly">Toggle Readonly</button>
8+
<button class="btn btn-sm btn-danger" ng-click="rate = 0" ng-disabled="isReadonly">Clear</button>
9+
<button class="btn btn-sm btn-default" ng-click="isReadonly = ! isReadonly">Toggle Readonly</button>
1010
<hr />
1111

1212
<h4>Custom icons</h4>

0 commit comments

Comments
 (0)