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

ItemPicker - when overlay is closed, focus state is restored #49

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

leekelleher
Copy link
Owner

A small change, for part of the Accessibility review #41.

@BatJan - would you be able to advice if this approach aligns with how this is being done in Umbraco? and/or if there is a better approach? (Thank you in advance.)

Description

Uses Umbraco's focusService to remember the current focus state before the ItemPicker's overlay is opened.
Once the overlay is closed, the focus state is restored.

Related Issues?

Types of changes

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

Checklist

  • My code follows the coding style of this project.
  • My changes generate no new warnings.
  • I have read the CONTRIBUTING and CODE_OF_CONDUCT documents.

@leekelleher leekelleher self-assigned this Oct 25, 2020
@leekelleher leekelleher added the status/wip Work-in-progress label Oct 25, 2020
@leekelleher leekelleher changed the title ItemPicker - overlay closed, ensure focus ItemPicker - when overlay is closed, focus state is restored Oct 25, 2020
@leekelleher leekelleher added the help wanted Extra attention is needed label Mar 10, 2021
@leekelleher leekelleher added this to the 2.0.0 milestone Apr 15, 2021
A small change, for part of the Accessibility review #41.

Uses Umbraco's `focusService` to remember the current focus
state before the ItemPicker's overlay is opened. Once it is closed,
the focus state is restored.
@leekelleher leekelleher changed the base branch from develop to dev/v2.0 April 16, 2021 15:41
@leekelleher leekelleher force-pushed the wip/itempicker-overlay-close-focus branch from 4527f87 to 805401a Compare April 16, 2021 15:42
@leekelleher
Copy link
Owner Author

Merging in, while I'm not totally happy with this, (there is room for big improvements here), I do feel that a small incremental improvement is better than none.

@leekelleher leekelleher merged commit 7a104c1 into dev/v2.0 Apr 16, 2021
@leekelleher leekelleher deleted the wip/itempicker-overlay-close-focus branch April 16, 2021 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed status/wip Work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant