fix(range): fix styling on range, add demo

references #5422
This commit is contained in:
Brandy Carney
2016-05-31 14:37:43 -04:00
parent f239b72be4
commit d24b080cb7
6 changed files with 85 additions and 6 deletions

View File

@ -48,7 +48,6 @@ ion-range {
position: relative;
display: block;
margin-top: -8px;
padding: $range-ios-padding;
}
@ -173,7 +172,8 @@ ion-range {
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
ion-range[#{$color-name}] {
.range-bar-active {
.range-bar-active,
.range-tick-active {
background: $color-base;
}
}

View File

@ -46,7 +46,6 @@ ion-range {
position: relative;
display: block;
margin-top: -16px;
padding: $range-md-padding;
}

View File

@ -10,7 +10,19 @@ import {pointerCoord} from '../../util/dom';
const RANGE_VALUE_ACCESSOR = new Provider(
NG_VALUE_ACCESSOR, {useExisting: forwardRef(() => Range), multi: true});
/**
* @name Range
* @description
* The Range slider lets users select from a range of values by moving
* the slider knob.
*
*
*
*
*
*
* @demo /docs/v2/demos/range/
*/
@Component({
selector: '.range-knob-handle',
template:
@ -231,7 +243,7 @@ export class Range {
/**
* @output {Range} Expression to evaluate when the range value changes.
*/
@Output() rangeChange: EventEmitter<Range> = new EventEmitter();
@Output() ionChange: EventEmitter<Range> = new EventEmitter();
constructor(

View File

@ -47,7 +47,6 @@ ion-range {
position: relative;
display: block;
margin-top: -16px;
padding: $range-wp-padding;
}