Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lunarfusion/css 117 progress circle core tokens #1488

Merged
merged 15 commits into from
Oct 4, 2022

Conversation

lunarfusion
Copy link
Contributor

@lunarfusion lunarfusion commented Aug 1, 2022

Description

BREAKING CHANGE: This migrates the Progress Circle component to core tokens.

How and where has this been tested?

Screenshots

Screen Shot 2022-08-01 at 11 08 10 AM

Screen Shot 2022-08-01 at 11 08 18 AM

Screen Shot 2022-08-01 at 2 33 04 PM

To-do list

  • If my change impacts other components, I have tested to make sure they don't break.
  • If my change impacts documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have tested these changes in Windows High Contrast mode.
  • This pull request is ready to merge.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2022

🚀 Deployed on https://pr-1488--spectrum-css.netlify.app

@github-actions github-actions bot temporarily deployed to pull request August 1, 2022 15:13 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 1, 2022 15:45 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 1, 2022 18:37 Inactive
.gitignore Outdated Show resolved Hide resolved
@lunarfusion lunarfusion force-pushed the lunarfusion/CSS-117-progress-circle-core-tokens branch from eec318e to ba2a5ec Compare August 2, 2022 15:39
@github-actions github-actions bot temporarily deployed to pull request August 2, 2022 15:44 Inactive
Copy link
Contributor

@bernhard-adobe bernhard-adobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than the question about the latest tokens "@spectrum-css/tokens": "^1.0.1" (do yarn install please to test it out) this looks really good! Great work.

I think the VRT will fail as there are a couple of class-names renamed. We need to expect that in the test.

@github-actions github-actions bot temporarily deployed to pull request August 3, 2022 21:15 Inactive
@lunarfusion lunarfusion force-pushed the lunarfusion/CSS-117-progress-circle-core-tokens branch from 54c65d6 to a1dee23 Compare August 3, 2022 21:25
@github-actions github-actions bot temporarily deployed to pull request August 3, 2022 21:29 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 4, 2022 12:22 Inactive
@pfulton
Copy link
Collaborator

pfulton commented Aug 5, 2022

I think the VRT will fail as there are a couple of class-names renamed. We need to expect that in the test.

@lunarfusion @bernhard-adobe - we actually have Progress Circle ignored in the VRT scenarios due to BackstopJS not being able to handle animations, so this one won't even run.

Copy link
Collaborator

@pfulton pfulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lunarfusion nice work! Let's remove the changes to the .gitignore and I think we're good to go on this one.

@github-actions github-actions bot temporarily deployed to pull request August 5, 2022 20:56 Inactive
Copy link
Contributor

@bernhard-adobe bernhard-adobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, approved

@pfulton pfulton force-pushed the lunarfusion/CSS-117-progress-circle-core-tokens branch from d8fa0d0 to a2545a0 Compare August 24, 2022 14:06
@github-actions github-actions bot temporarily deployed to pull request August 24, 2022 14:11 Inactive
@pfulton
Copy link
Collaborator

pfulton commented Aug 24, 2022

Released:
2.0.0-beta.0

@pfulton pfulton added Component: Progress Circle released-beta Indicates a beta release has been rolled for this PR pending-swc-validation Being reviewed in/by SWC; required for breaking changes labels Aug 24, 2022
@pfulton
Copy link
Collaborator

pfulton commented Sep 29, 2022

@jnurthen - would you mind taking a look at the changes to the Progress Circle here to let @lunarfusion know if the Windows High Contrast Mode styles are acceptable? Thank you!

@jnurthen
Copy link
Member

@pfulton - I think I made a mistake when I fixed this one originally. The Highlight colour is not guaranteed to be a visible colour combination with the track (which I think gets ButtonBorder/ButtonText by default).
This is particularly apparent when viewing the High Contrast (light) theme.
Screen Shot 2022-09-29 at 2 17 13 PM

I think a border between the 2 could resolve this - or maybe using HighlightText as one of the colours or another way? However, I wouldn't want to block this PR on that as it is not a new error. IMO This can be tracked in a separate (lower priority) Issue as the visibiity of the progress on a progresscircle is likely low priority.

@lunarfusion
Copy link
Contributor Author

lunarfusion commented Sep 30, 2022

@jnurthen The change that I initially made to WHCM was to ensure the track and the fill have contrast. I did not override the track color for WHCM, but I did override the fill with keyword "Highlight". Here is the VRT result.

Before:
188222934-87765339-1058-4c1f-b4b9-29d03f645424

After:
188222970-d73f40f3-b829-4858-8576-4d552dfb3503

Note that the VRTs appear to be using Mac emulation of WHCM. Our assessment of the difference between Mac emulation and actual default WHCM colors on a windows machine is:

  • Highlight color that looks bright blue (to me) on Mac emulation (left in the visual below)
  • Highlight color that looks pale purple (to me) on a PC that a colleague tested for us (right in the visual below)

Screen Shot 2022-09-30 at 2 45 01 PM

Edit: The emulation uses dark mode, but in light mode I can see what you pointed out in your comment. The track looks black and the fill looks dark blue.
Screen Shot 2022-09-30 at 3 01 05 PM
Here is a visual of Mac emulation of Highlight in light mode (left) and PC test result (right):
Screen Shot 2022-09-30 at 3 02 54 PM

One helpful change is to add "forced-color-adjust: none;" to the WHCM media query, which gives us this:
Screen Shot 2022-09-30 at 3 05 32 PM
Screen Shot 2022-09-30 at 3 05 39 PM

Would you like any changes to track or fill color keywords or to the delineation of track and fill based on this info? I can provide a comprehensive visual of our Mac emulation vs PC results if that might help.

@jnurthen
Copy link
Member

jnurthen commented Sep 30, 2022

These are the 4 high contrast themes that windows (10) provides.

HC #1

Screen Shot 2022-09-30 at 12 23 59 PM

### HC #2

Screen Shot 2022-09-30 at 12 24 14 PM

### HC Dark

Screen Shot 2022-09-30 at 12 23 12 PM

### HC Light

Screen Shot 2022-09-30 at 12 23 38 PM

These were tested using Assistiv Labs which is running windows.

I don't like using forced-color-adjust: none here as that could lead to the track completely disappearing which I don't think is any better than the current situation.

I was playing around with it and changing the border-style on the track to double might do the trick!

Screen Shot 2022-09-30 at 12 38 05 PM

Screen Shot 2022-09-30 at 12 38 17 PM

@pfulton pfulton force-pushed the lunarfusion/CSS-117-progress-circle-core-tokens branch from a2545a0 to 470eb10 Compare October 3, 2022 14:48
@github-actions github-actions bot temporarily deployed to pull request October 3, 2022 14:52 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 3, 2022 15:12 Inactive
@pfulton
Copy link
Collaborator

pfulton commented Oct 3, 2022

Released: @spectrum-css/progresscircle@2.0.0-beta.1

@pfulton pfulton force-pushed the lunarfusion/CSS-117-progress-circle-core-tokens branch from 8719f01 to d958cbd Compare October 4, 2022 20:00
@github-actions github-actions bot temporarily deployed to pull request October 4, 2022 20:04 Inactive
@pfulton pfulton merged commit 27fdaea into main Oct 4, 2022
@pfulton pfulton deleted the lunarfusion/CSS-117-progress-circle-core-tokens branch October 4, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-swc-validation Being reviewed in/by SWC; required for breaking changes released-beta Indicates a beta release has been rolled for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants