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

Overlay review updates. #1147

Merged
merged 2 commits into from
Jan 27, 2021
Merged

Overlay review updates. #1147

merged 2 commits into from
Jan 27, 2021

Conversation

Westbrook
Copy link
Contributor

@Westbrook Westbrook commented Jan 26, 2021

Description

  • ensure [focusable] can be passed focus
  • remove focus outline on ActiveOverlay
  • use aria-hidden="true" on content that prevents tab access
  • have overlay-stack set content.open = true rather than rely on implementor
  • allow "hover" content to be trigged via focusin/out

Related Issue

fixes #1133

Motivation and Context

Accessibility, predictability, simplicity, correctness.

How Has This Been Tested?

Manually at https://60108127101bb4010c2b6208--spectrum-web-components.netlify.app/components/dialog-wrapper

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

najikahalsema
najikahalsema previously approved these changes Jan 26, 2021
Copy link
Collaborator

@najikahalsema najikahalsema left a comment

Choose a reason for hiding this comment

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

Nice!

@adixon-adobe
Copy link
Collaborator

@Westbrook what's up with the footer font color there?

@Westbrook
Copy link
Contributor Author

@adixon-adobe looks like this got either removed or overlooked at the Spectrum CSS level at some point. The content is available in the CSS, though it doesn't not have styling for the color property, but not present in any of the HTML examples. I'd like to follow up on this separately, as this is currently what is in production: https://opensource.adobe.com/spectrum-web-components/components/dialog-wrapper 🙈 Thoughts?

@adixon-adobe
Copy link
Collaborator

@Westbrook can you just file a followup issue? I don't think you need to hold this change up, but you did post a screenshot with an obvious issue ;-)

@Westbrook
Copy link
Contributor Author

Well, in comparison: 😜
image

I've added #1149 to track!

@Westbrook Westbrook merged commit a7c4cff into main Jan 27, 2021
@Westbrook Westbrook deleted the westbrook/overlay branch January 27, 2021 21:11
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.

Oddly shaped focus outline when opening sp-dialog
3 participants