mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(range): add support for range bar border radius (#16519)
This commit is contained in:
committed by
Brandy Carney
parent
1a27bce7fd
commit
c036cb0924
@@ -12,6 +12,7 @@
|
||||
--bar-height: #{$range-ios-bar-height};
|
||||
--bar-background: #{$range-ios-bar-background-color};
|
||||
--bar-background-active: #{ion-color(primary, base)};
|
||||
--bar-border-radius: 0;
|
||||
--height: #{$range-ios-slider-height};
|
||||
|
||||
@include padding($range-ios-padding-vertical, $range-ios-padding-horizontal);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
--bar-height: #{$range-md-bar-height};
|
||||
--bar-background: #{ion-color(primary, base, 0.26)};
|
||||
--bar-background-active: #{ion-color(primary, base)};
|
||||
--bar-border-radius: 0;
|
||||
--height: #{$range-md-slider-height};
|
||||
--pin-background: #{ion-color(primary, base)};
|
||||
--pin-color: #{ion-color(primary, contrast)};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* @prop --bar-background: Background of the range bar
|
||||
* @prop --bar-background-active: Background of the active range bar
|
||||
* @prop --bar-height: Height of the range bar
|
||||
* @prop --bar-border-radius: Border radius of the range bar
|
||||
* @prop --height: Height of the range
|
||||
* @prop --knob-background: Background of the range knob
|
||||
* @prop --knob-border-radius: Border radius of the range knob
|
||||
@@ -91,6 +92,7 @@
|
||||
}
|
||||
|
||||
.range-bar {
|
||||
@include border-radius(var(--bar-border-radius));
|
||||
@include position(calc((var(--height) - var(--bar-height)) / 2), null, null, 0);
|
||||
position: absolute;
|
||||
|
||||
|
||||
@@ -117,6 +117,7 @@ left or right of the range.
|
||||
| ------------------------- | ---------------------------------- |
|
||||
| `--bar-background` | Background of the range bar |
|
||||
| `--bar-background-active` | Background of the active range bar |
|
||||
| `--bar-border-radius` | Border radius of the range bar |
|
||||
| `--bar-height` | Height of the range bar |
|
||||
| `--height` | Height of the range |
|
||||
| `--knob-background` | Background of the range knob |
|
||||
|
||||
Reference in New Issue
Block a user