-
Notifications
You must be signed in to change notification settings - Fork 198
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
feat(splitview)!: migrate tokens #2103
Conversation
c541353
to
e7aecba
Compare
🚀 Deployed on https://pr-2103--spectrum-css.netlify.app |
30d130f
to
ee4a2c4
Compare
041ce74
to
6acd76c
Compare
6acd76c
to
3d7a8bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Definitely a WHCM improvement.
components/splitview/index.css
Outdated
|
||
&:focus-visible { | ||
outline: none; | ||
background-color: var(--highcontrast-splitview-handle-background-color-focus, var(--mod-splitview-handle-background-color-focus, var(--spectrum-splitview-handle-background-color-focus))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to display the focus either in the docs site or in storybook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A separate story in Storybook could be nice if that's possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about that. The issue is that it's all divs so I can't trigger focus-visible without adding a class. I'm assuming that this focus is used in SWC? The CSS was set up like this but not sure how it works with no focusable elements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting ok the splitter in SWC has a tabindex of 0 so that's why this works there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to have to do an interaction here to get the focus to show up without a class so this will have to wait until the Popover PR goes in... if it ever does
ae07ee9
to
11272ee
Compare
6030db6
to
c2efa6b
Compare
ba3dc22
to
1ef04a7
Compare
5191573
to
144144f
Compare
144144f
to
46ca320
Compare
use two colon pseudo elements fix max nesting depth
46ca320
to
e28a626
Compare
BREAKING CHANGE: migrates SplitView to use `@adobe/spectrum-tokens` Additionally: * fix(splitview): remove touch-action from gripper * refactor(splitview): combine skin.css with index.css and delete skin.css * feat(splitview)!: updating to use core tokens * chore(splitview): update mods * style(splitview): add whcm styling * chore(splitview): fix linter errors use two colon pseudo elements fix max nesting depth * chore(splitview): working on adding focus story * chore(splitview): add storybook interaction add-on * chore(splitview): use latest version of tokens * fix(splitview): use vertical gripper width for vertical gripper --------- Co-authored-by: Patrick Fulton <[email protected]>
Description
This PR is a DIY Migration for the Split view component. This also adds CSS to prevent touch-action on the gripper on mobile.
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.
Regression testing
Validate:
Screenshots
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. ✨