Skip to content
Merged
2 changes: 0 additions & 2 deletions core/src/components/range/range.common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@
width: 100%;
height: var(--bar-height);

background: var(--bar-background);
Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.

pointer-events: none;
}

Expand Down
33 changes: 27 additions & 6 deletions core/src/components/range/range.ionic.scss
Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

:host {
--knob-border-radius: #{globals.$ion-border-radius-full};
--knob-background: #{globals.$ion-primitives-base-white};
--knob-background: #{globals.$ion-bg-input-default};
--knob-box-shadow: none;
--knob-size: #{globals.$ion-scale-600};
--knob-handle-size: #{globals.$ion-scale-1000};
--knob-handle-size: #{globals.$ion-scale-1100};
--bar-height: #{globals.$ion-scale-200};
--bar-background: #{globals.$ion-primitives-neutral-100};
Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.
Outdated
--bar-background-active: #{globals.ion-color(primary, base)};
--bar-border-radius: #{globals.$ion-border-radius-400};
--height: #{globals.$ion-scale-1000};
--height: #{globals.$ion-scale-1100};

@include globals.typography(globals.$ion-body-md-regular);

Expand Down Expand Up @@ -75,7 +75,11 @@
@include margin(null, null, calc(globals.$ion-space-200 + globals.$ion-font-size-300), null);
}

.range-bar-active {
.range-bar {
background: globals.$ion-bg-neutral-subtle-default;
}

Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.
Outdated
.range-bar.range-bar-active {
bottom: 0;

width: auto;
Expand Down Expand Up @@ -115,6 +119,8 @@

background: transparent;

color: globals.$ion-text-default;

font-size: globals.$ion-font-size-300;

text-align: center;
Expand All @@ -123,7 +129,7 @@
.range-knob {
border-width: globals.$ion-border-size-025;
border-style: globals.$ion-border-style-solid;
border-color: globals.ion-color(primary, base);
border-color: globals.$ion-border-primary;
box-sizing: border-box;
}

Expand All @@ -134,7 +140,15 @@
// icons need to receive the same opacity.

:host(.range-disabled) {
opacity: 0.3;
.range-bar {
background: globals.$ion-bg-neutral-subtle-default;
}

.range-knob {
border-color: globals.$ion-border-input-default;

background: globals.$ion-bg-input-disabled;
}
Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.
Outdated
}

// Range Label Placement - Start
Expand Down Expand Up @@ -207,3 +221,10 @@
.range-knob-handle.ion-focused .range-knob {
@include globals.focused-state();
}

// Range Pressed
// ----------------------------------------------------------------
.range-knob-handle.ion-activated .range-knob,
.range-knob-handle.range-knob-pressed .range-knob {
background: globals.$ion-bg-input-press;
}
4 changes: 4 additions & 0 deletions core/src/components/range/range.native.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@
:host(.in-item.range-label-placement-stacked) .native-wrapper {
@include margin(null, null, $range-item-label-margin-bottom, null);
}

.range-bar {
background: var(--bar-background);
}
Comment thread
JoaoFerreira-FrontEnd marked this conversation as resolved.
Outdated
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading