File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
components/progresscircle Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,29 @@ governing permissions and limitations under the License.
37
37
--spectrum-progress-circle-thickness : var (--spectrum-progress-circle-thickness-large );
38
38
}
39
39
40
+ .spectrum-Circle {
41
+ fill : none;
42
+ }
43
+
40
44
/* windows high contrast mode */
41
45
@media (forced-colors : active) {
42
46
.spectrum-ProgressCircle {
43
47
/* fill is bright color */
44
48
--highcontrast-progress-circle-fill-border-color : Highlight;
45
49
--highcontrast-progressbar-track-color : Canvas;
46
50
}
51
+
52
+ .spectrum-ProgressCircle : not (.spectrum-ProgressCircle--indeterminate ) {
53
+ .spectrum-Circle {
54
+ stroke : CanvasText;
55
+ }
56
+
57
+ .spectrum-outerCircle {
58
+ border : 1px solid;
59
+ border-color : CanvasText;
60
+ border-radius : 50% ;
61
+ }
62
+ }
47
63
}
48
64
49
65
.spectrum-ProgressCircle {
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ export const Template = ({
25
25
// SVG strokes are centered, so subtract half the stroke width from the radius to create an inner stroke.
26
26
let radius = `calc(50% - ${ strokeWidth / 2 } px)` ;
27
27
28
+ let insideRadius = `calc(50% - ${ strokeWidth / 1 } px)` ;
29
+
28
30
return html `
29
31
< div
30
32
class =${ classMap ( {
@@ -38,7 +40,8 @@ export const Template = ({
38
40
style=${ styleMap ( customStyles ) }
39
41
data-testid=${ ifDefined ( testId ) }
40
42
>
41
- < svg fill ="none " width ="100% " height ="100% ">
43
+ < svg fill ="none " width ="100% " height ="100% " class ="spectrum-outerCircle ">
44
+ < circle class ="spectrum-Circle " cx ="50% " cy ="50% " r =${ insideRadius } stroke-width ="2" />
42
45
< circle
43
46
cx ="50% "
44
47
cy ="50% "
You can’t perform that action at this time.
0 commit comments