Skip to content

Commit cad3f10

Browse files
authored
fix(scss notation): fix & notation for progress bar (#4999)
1 parent 45933bd commit cad3f10

File tree

1 file changed

+79
-79
lines changed

1 file changed

+79
-79
lines changed

ui/components/progress-bar/base/_index.scss

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license
33

44
/**
5-
* @name base
6-
* @selector .slds-progress-bar
7-
* @restrict div
8-
* @support dev-ready
9-
* @variant
5+
* @name base
6+
* @selector .slds-progress-bar
7+
* @restrict div
8+
* @support dev-ready
9+
* @variant
1010
*/
1111
.slds-progress-bar {
1212
@include appearance(none);
@@ -16,97 +16,97 @@
1616
background: $progress-bar-color-background;
1717
border: 0;
1818
position: relative;
19+
}
1920

20-
/**
21-
* @summary Creates a progress bar height at the smaller .125rem (2px) size
22-
*
23-
* @selector .slds-progress-bar_x-small
24-
* @restrict .slds-progress-bar
25-
* @modifier
26-
* @group thickness
27-
*/
28-
&_x-small,
29-
&--x-small {
30-
height: $progress-bar-height;
31-
}
21+
/**
22+
* @summary Creates a progress bar height at the smaller .125rem (2px) size
23+
*
24+
* @selector .slds-progress-bar_x-small
25+
* @restrict .slds-progress-bar
26+
* @modifier
27+
* @group thickness
28+
*/
29+
.slds-progress-bar_x-small,
30+
.slds-progress-bar--x-small {
31+
height: $progress-bar-height;
32+
}
3233

33-
/**
34-
* @summary Creates a progress bar height at the smaller .25rem (4px) size
35-
*
36-
* @selector .slds-progress-bar_small
37-
* @restrict .slds-progress-bar
38-
* @modifier
39-
* @group thickness
40-
*/
41-
&_small,
42-
&--small {
43-
height: ($progress-bar-height * 2);
44-
}
34+
/**
35+
* @summary Creates a progress bar height at the smaller .25rem (4px) size
36+
*
37+
* @selector .slds-progress-bar_small
38+
* @restrict .slds-progress-bar
39+
* @modifier
40+
* @group thickness
41+
*/
42+
.slds-progress-bar_small,
43+
.slds-progress-bar--small {
44+
height: ($progress-bar-height * 2);
45+
}
4546

46-
/**
47-
* @summary Creates a progress bar height at the smaller .5rem (8px) size
48-
*
49-
* @selector .slds-progress-bar_medium
50-
* @restrict .slds-progress-bar
51-
* @modifier
52-
* @group thickness
53-
*/
54-
&_medium,
55-
&--medium {
56-
height: ($progress-bar-height * 4);
57-
}
47+
/**
48+
* @summary Creates a progress bar height at the smaller .5rem (8px) size
49+
*
50+
* @selector .slds-progress-bar_medium
51+
* @restrict .slds-progress-bar
52+
* @modifier
53+
* @group thickness
54+
*/
55+
.slds-progress-bar_medium,
56+
.slds-progress-bar--medium {
57+
height: ($progress-bar-height * 4);
58+
}
5859

59-
/**
60-
* @summary Creates a progress bar height at the smaller .75rem (12px) size
61-
*
62-
* @selector .slds-progress-bar_large
63-
* @restrict .slds-progress-bar
64-
* @modifier
65-
* @group thickness
66-
*/
67-
&_large,
68-
&--large {
69-
height: ($progress-bar-height * 6);
70-
}
60+
/**
61+
* @summary Creates a progress bar height at the smaller .75rem (12px) size
62+
*
63+
* @selector .slds-progress-bar_large
64+
* @restrict .slds-progress-bar
65+
* @modifier
66+
* @group thickness
67+
*/
68+
.slds-progress-bar_large,
69+
.slds-progress-bar--large {
70+
height: ($progress-bar-height * 6);
71+
}
7172

72-
/**
73-
* @summary Adds a border radius to the progress bar to give it a circular look
74-
*
75-
* @selector .slds-progress-bar_circular
76-
* @restrict .slds-progress-bar
77-
* @modifier
78-
* @group radius
79-
*/
80-
&_circular,
81-
&--circular {
82-
border-radius: $border-radius-large;
73+
/**
74+
* @summary Adds a border radius to the progress bar to give it a circular look
75+
*
76+
* @selector .slds-progress-bar_circular
77+
* @restrict .slds-progress-bar
78+
* @modifier
79+
* @group radius
80+
*/
81+
.slds-progress-bar_circular,
82+
.slds-progress-bar--circular {
83+
border-radius: $border-radius-large;
8384

84-
.slds-progress-bar__value {
85-
border-radius: $border-radius-large;
86-
}
85+
.slds-progress-bar__value {
86+
border-radius: $border-radius-large;
8787
}
8888
}
8989

9090
/**
91-
* @summary Fill up blue bar inside of the progress bar
92-
*
93-
* @selector .slds-progress-bar__value
94-
* @restrict .slds-progress-bar span
95-
*/
91+
* @summary Fill up blue bar inside of the progress bar
92+
*
93+
* @selector .slds-progress-bar__value
94+
* @restrict .slds-progress-bar span
95+
*/
9696
.slds-progress-bar__value {
9797
display: block;
9898
background: $progress-bar-color-background-fill;
9999
height: 100%;
100100
}
101101

102102
/**
103-
* @summary Create a green progress bar
104-
*
105-
* @selector .slds-progress-bar__value_success
106-
* @restrict .slds-progress-bar__value
107-
* @modifier
108-
* @group color
109-
*/
103+
* @summary Create a green progress bar
104+
*
105+
* @selector .slds-progress-bar__value_success
106+
* @restrict .slds-progress-bar__value
107+
* @modifier
108+
* @group color
109+
*/
110110
.slds-progress-bar__value_success {
111111
background: $progress-bar-color-background-fill-success;
112112
}

0 commit comments

Comments
 (0)