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

style(picker)!: add missing tokens #2063

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Conversation

mlogsdon18
Copy link
Contributor

@mlogsdon18 mlogsdon18 commented Aug 2, 2023

Description

  • Added inline-size for new field-width token
  • Removed medium size vars as they were set by default
  • Added missing spacing tokens for the label, validation icon, and progress circle
  • Removed hard-coded margin-inline for quiet picker popovers that was causing them to be misaligned

How and where has this been tested?

Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.

Storybook Test:

  1. Open the storybook for the Picker component:
    - [ ] Verify that all stories load correctly

Docs Test:

  1. Open the docs site for the Picker component
    - [ ] Docs site displays examples correctly
    - [ ] Inspect and verify that the new field-width token has been added and is being used for a default width
    - [ ] Inspect and verify that the field-top-to-disclosure-icon-[size], field-end-edge-to-disclosure-icon-[size] and picker-end-edge-to-disclosure-icon-quiet tokens are all in use for the Chevron padding.

Regression testing

Validate:

  1. A legacy documentation page (such as accordion), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive
  1. A migrated documentation page (such as action group), including:
  • The page renders correctly
  • The page is accessible
  • The page is responsive

To-do list

  • I have read the contribution guidelines.

  • I have updated relevant storybook stories and templates.

  • I have tested these changes in Windows High Contrast mode.

  • 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.

  • ✨ This pull request is ready to merge. ✨

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

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

@github-actions github-actions bot temporarily deployed to pull request August 2, 2023 18:37 Inactive
@pfulton pfulton force-pushed the css-483-picker-layout-tokens branch from 617636f to 2550569 Compare August 2, 2023 20:16
@pfulton
Copy link
Collaborator

pfulton commented Aug 2, 2023

@Westbrook - just a note here that this will remove the medium size class (.spectrum-Picker--sizeM) and make it the default size

@mlogsdon18 noting that we'll make this a breaking change when merging in!

@github-actions github-actions bot temporarily deployed to pull request August 2, 2023 20:22 Inactive
@mlogsdon18 mlogsdon18 force-pushed the css-483-picker-layout-tokens branch from 57e5b81 to 7885f5b Compare August 3, 2023 13:25
@github-actions github-actions bot temporarily deployed to pull request August 3, 2023 13:31 Inactive
@mlogsdon18 mlogsdon18 changed the title style(picker): add missing tokens style(picker)!: add missing tokens Aug 3, 2023
Comment on lines -15 to -22
/* Placeholder tokens to align Popover with Picker */
.spectrum--medium {
--spectrum-picker-popover-quiet-offset-x: 12px;
}

.spectrum--large {
--spectrum-picker-popover-quiet-offset-x: 14px;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥 🔥 🔥

Copy link
Contributor

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

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

LGTM!

Added inline-size for new field-width token
Removed medium size vars as they were set by default
Added spacing tokens for the label, validation icon, and progress circle
Removed margin-inline for quiet picker popovers
@mlogsdon18 mlogsdon18 force-pushed the css-483-picker-layout-tokens branch from 7885f5b to fa9611e Compare August 4, 2023 14:33
@github-actions github-actions bot temporarily deployed to pull request August 4, 2023 14:40 Inactive
@pfulton pfulton added the run_vrt For use on PRs looking to kick off VRT label Aug 4, 2023
@github-actions github-actions bot removed the run_vrt For use on PRs looking to kick off VRT label Aug 4, 2023
@pfulton pfulton merged commit c724c73 into main Aug 4, 2023
@pfulton pfulton deleted the css-483-picker-layout-tokens branch August 4, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants