File tree Expand file tree Collapse file tree 3 files changed +33
-4
lines changed
samples/inputs/slider/styling Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 1414 < body >
1515 < div id ="root ">
1616 < div class ="container sample center ">
17- < igc-slider value ="40 ">
18- </ igc-slider >
17+ < div class ="slider-container ">
18+ < span class ="slider-label "> Slider</ span >
19+ < igc-slider value ="40 "> </ igc-slider >
20+ </ div >
21+ < div class ="slider-container ">
22+ < span class ="slider-label "> Range Slider</ span >
23+ < igc-range-slider lower ="20 " upper ="70 "> </ igc-range-slider >
24+ </ div >
1925 </ div >
2026 </ div >
2127 <!-- This script is needed only for parcel and it will be excluded for webpack -->
Original file line number Diff line number Diff line change @@ -2,8 +2,12 @@ igc-slider {
22 padding : 30px 30px 0px 30px ;
33}
44
5+ igc-range-slider {
6+ padding : 30px 30px 0px 30px ;
7+ }
8+
59igc-slider ::part (thumb ) {
6- background : # 28a745 ;
10+ background : # 28a745 ;
711}
812
913igc-slider ::part (thumb ): focus {
@@ -14,4 +18,22 @@ igc-slider::part(thumb):focus {
1418igc-slider ::part (fill ) {
1519 display : block;
1620 background : # 28a745 ;
21+ }
22+
23+ igc-range-slider ::part (thumb ) {
24+ background : orange;
25+ }
26+
27+ igc-range-slider ::part (thumb ): focus {
28+ background : navy;
29+ box-shadow : 0 0 0 2px orange;
30+ }
31+
32+ igc-range-slider ::part (track ) {
33+ display : block;
34+ background : navy;
35+ }
36+
37+ igc-range-slider ::part (thumb-label-inner ) {
38+ background : navy;
1739}
Original file line number Diff line number Diff line change 1- import { defineComponents , IgcSliderComponent } from 'igniteui-webcomponents' ;
1+ import { defineComponents , IgcSliderComponent , IgcRangeSliderComponent } from 'igniteui-webcomponents' ;
22import 'igniteui-webcomponents/themes/light/bootstrap.css' ;
33import './SliderStyling.css' ;
44
55defineComponents ( IgcSliderComponent ) ;
6+ defineComponents ( IgcRangeSliderComponent ) ;
67
78export class SliderTicks {
89 constructor ( ) {
You can’t perform that action at this time.
0 commit comments