-
Notifications
You must be signed in to change notification settings - Fork 201
refactor: remove is-focused and is-keyboardFocused #2119
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
Conversation
120351b
to
fe1f293
Compare
🚀 Deployed on https://pr-2119--spectrum-css.netlify.app |
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 on board for this (we need to do it!), and the changes here look correct. The only other thing I'm wondering is when/how we can also prevent these classes from being applied to elements in the docs site. On quick glance, it looks like the code that handles this in enhancement.js
is kind of broad and applies those selectors to a lot of elements...
@pfulton It is currently pretty broad in order to keep the functionality working for the components that need it. It's basically a duplicate of how the focus-ring javascript was running. We could try to add checks for specific components and only run the event handlers on those? Kind of modify the code we have for Textfield a bit and I think that could work. I'll have to look into that |
Sounds good. We can do that as a separate ticket! |
Ok I can write one up! |
fe1f293
to
40404d5
Compare
40404d5
to
396cb8e
Compare
396cb8e
to
c328fba
Compare
c328fba
to
441967c
Compare
BREAKING CHANGE: Alert variants of Dialog have been removed from Dialog and placed into their own new component, Alert Dialog Additionally: * feat(alertdialog): generate new component * feat(alertdialog): use new tokens * feat(alertdialog): adds all variants * feat(alertdialog): adds icons * feat(alertdialog): adds secondary button and scroll variants * chore(alertdialog): adds variant descriptions * fix(alertdialog): font family tokens * chore(alertdialog): refactor icon color * fix(alertdialog): icons on correct variants * feat(alertdialog): underlay color * feat(alertdialog): corner radius * fix(alertdialog): rtl for example button * fix(alertdialog): more rtl * feat(alertdialog): storybook variants * chore(alertdialog): update tokens * chore(alertdialog): remove alerts from dialog * fix(alertdialog): background color * fix(alerdialog): use max height token * fix(alertdialog): small bug fixes * chore(alertdialog): add mods * fix(alertdialog): aria and scrollable a11y * chore(alertdialog): css refactor * feat(alertdialog): work on story controls * chore(alertdialog): improve docs * fix(alertdialog): design feedback * chore(alertdialog): move scale specific styling to custom vars * chore(alertdialog): use custom props for nested components * feat(alertdialog): adds onClick to story btns * feat(alertdialog): adds underlay to story * chore(alertdialog): tokens version bump * fix(alertdialog): dialog max width * chore(alertdialog): adds legacy token fallback * fix(alertdialog): fallbacks for nested custom tokens * fix(alertdialog): default for justify content * chore(alertdialog): use % over vw * fix(alertdialog): change default for icon sizing pass throughs * fix(alertdialog): use initial * fix(alertdialog): remove pass throughs for icon * chore(alertdialog): remove space * chore(alertdialog): update yarn.lock file * chore(alertdialog): update yarn.lock * chore: update mods assets for dependencies * chore: aligning alpha releases * chore: bump alterdialog to reflect dep changes * chore(alertdialog): correct storybook location --------- Co-authored-by: Patrick Fulton <pfulton@adobe.com> Co-authored-by: castastrophe <castastrophe@users.noreply.github.com>
441967c
to
a55e9df
Compare
a55e9df
to
069adfb
Compare
Description
Removes the
is-focused
and theis-keyboardFocused
classes from the following components:These components do not exist in SWC so there should not be any issues on that end.
How and where has this been tested?
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. ✨