-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Accessibility: Add focus lock for the infinite editor #8522
Merged
glombek
merged 40 commits into
umbraco:v8/contrib
from
BatJan:feature/infinite-editor-focus-lock
May 4, 2021
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
d9f091b
Toggle the inert attribute when adding or removing the first/last editor
BatJan c44821c
Add focus lock directive for the editor
BatJan f6d9466
Increase timeout period so infinite editors transclusions will also h…
BatJan 3db306d
Make sure elements containing .ng-hide are not part of the possible f…
BatJan 27584df
Update comments
BatJan 069ea99
Conditionally add umb-focus-lock and inert attributes
BatJan 83f3cbb
Hook into the evenservice to reinitialize the onInit method if the la…
BatJan 1749cf8
Don't try to add focus to something that does not exist
BatJan 9561282
Minor code refactor placing some variables outside the init method
BatJan bdfc3e3
Refactoring code to make things a bit more clean
BatJan 738172b
Remove the event listener when the directive is destroyed
BatJan d4fe46a
Add mutationObserver to watch for attribute changes and then trigger …
BatJan d8bc86b
Merge branch 'v8/contrib' into feature/infinite-editor-focus-lock
BatJan af11942
Fetch focusable elements on domChange
BatJan c2b8862
Ensure that args exists before trying to read the properties
BatJan d5600f7
Refactor to use mutationobserver when overlays are closed passing the…
BatJan b8da6f3
Change ng-hide to ng-if so the focusable elements inside the hidden d…
BatJan 4d16703
Narrow attributes to look for down to the bare minimum of the umb-foc…
BatJan 051c8f9
Refactor to using good ol' for loop (Fastest)
BatJan 64ffc49
Disconnect the observer once the init function has been called - Mass…
BatJan 1108a67
Event handler cleanup
BatJan f0239aa
Refactor the code to re-initialize the init method on destroy in case…
BatJan 538600d
Align codestyle
BatJan 4e7a577
Add logic to deal with "lastKnowFocused" elements in infinite editing…
BatJan 4341c34
Merge branch 'v8/contrib' into feature/infinite-editor-focus-lock
BatJan 18bbe34
Re-add attributes after merge with contrib branch
BatJan 44bc965
Correct spelling mistake
BatJan b69af2a
Move onInit into the $includeContentLoaded event and set the timeout …
BatJan a7a4b9a
Merge branch 'v8/contrib' into feature/infinite-editor-focus-lock
BatJan e8c7156
Make sure to add focus to elements with role="button" as well
BatJan 664a586
Add comments and remove timeout / delay settings
BatJan 44c34e2
Debouce domObserver
BatJan 5c02d18
Wrap init function in safeApply
BatJan 7cf0fc2
Merge branch 'v8/contrib' into feature/infinite-editor-focus-lock
BatJan 7fe7637
Add comments to help remember / understand what things are intended t…
BatJan 863fdff
Adding more comments
BatJan ce41333
Move setting of first and last focusable elements into the setElement…
BatJan b75ab71
Remove todo
BatJan a408a38
Move the setup of first and last focusable elements back to where the…
BatJan 0952fdb
Merge branch 'v8/contrib' into feature/infinite-editor-focus-lock
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editors.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Umbraco.Web.UI.Client/src/views/components/tree/umb-tree.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@nul800sebastiaan I've just experienced a problem with this line.
From reading this line there is an obvious mistake as we easily could have just one or zero infinite editors.
Lets me know if you need anything from me, but I think this will have to be dealt with before making the RC. :-)