Skip to content

Commit 65efb06

Browse files
aramos-adobecastastrophe
authored andcommitted
docs(progresscircle): making some changes
1 parent 02f187e commit 65efb06

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.changeset/itchy-kids-travel.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
This is the S2 migration of the progress circle. The original markup has changed to an svg and circle element to allow CSS styles such as `stroke-linecap`. This was necessary to match the design. The `--small/--medium/--large` sizing classes have been deprecated in favor of t-shirt classes `--sizeS/--sizeM/--sizeL`
88

9+
The `.spectrum-ProgressCircle--small`, `.spectrum-ProgressCircle--medium`, and `.spectrum-ProgressCircle--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes.
10+
911
### Animation
1012

1113
`@keyframes spectrum-dashoffset-animation`:

components/progresscircle/index.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ governing permissions and limitations under the License.
9696
stroke: var(--highcontrast-progressbar-track-color, var(--mod-progress-circle-track-border-color, var(--spectrum-progress-circle-track-border-color)));
9797
}
9898

99-
/* circle progress filled */
99+
/* circle: progress filled */
100100
.spectrum-ProgressCircle-fill {
101101
stroke-width: var(--mod-progress-circle-thickness, var(--spectrum-progress-circle-thickness));
102102
stroke: var(--highcontrast-progress-circle-fill-border-color, var(--mod-progress-circle-fill-border-color, var(--spectrum-progress-circle-fill-border-color)));
@@ -114,3 +114,14 @@ governing permissions and limitations under the License.
114114
transform-origin: center;
115115
}
116116
}
117+
118+
/* windows high contrast mode */
119+
@media (forced-colors: active) {
120+
.spectrum-ProgressCircle {
121+
/* fill is bright color */
122+
--highcontrast-progress-circle-fill-border-color: Highlight;
123+
124+
/* fill over background is bright color */
125+
--highcontrast-progress-circle-fill-border-color-over-background: Highlight;
126+
}
127+
}

components/progresscircle/stories/template.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,13 @@ export const Template = ({
6262
</div>
6363
`;
6464
};
65+
66+
export const ProgressCircleGroup = (args) => html`
67+
${window.isChromatic() ? html`
68+
${Template(args)}
69+
${Template({
70+
...args,
71+
isIndeterminate: true,
72+
})}
73+
` : Template(args)}
74+
`;

0 commit comments

Comments
 (0)