-
Notifications
You must be signed in to change notification settings - Fork 56
Feat add focus management for toolbar #30
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4516834
test: add a focussable link ahead of markdown-toolbar in example
keithamus a19ded0
feat: add focus management for toolbar
keithamus 987b5a2
test: change example link to button
keithamus 72c0c73
feat: use `data-md-button` to select for focus management
keithamus fc01316
feat: use delegated event listener for keyboard focus
keithamus bf0fde1
fix: remove MarkDownButtonElement instance check
keithamus fa869bd
fix: check currentTarget is closest to button invoking keypress
keithamus 95b19a5
refactor: drop unecessary binding on focusKeydown
keithamus 538ff34
refactor: use md-* selectors where possible
keithamus 311e8c6
refactor: move tabIndex assigment to markdown-toolbar
keithamus 054b4c3
test: add test for generic data-md-button elements
keithamus 98ed87f
refactor: DRY up indexOf calls
keithamus abafcb6
style: drop erroneous console.log
keithamus f1bfaba
refactor: DRY up buttons.length
keithamus 7fef62f
refactor: move needless if condition out of loop
keithamus 014e98f
style: add return type annotation for getButtons function
keithamus e6e2ae0
style: add type guard to buttons
keithamus 33a7ceb
refactor: move element selectors to assignment
keithamus baa5138
fix: filter out hidden elements
keithamus 715efc8
fix: do not focus on buttons that are hidden via CSS
keithamus 85206b2
fix: make focus management lazy, on focus of toolbar.
keithamus ee95e9d
fix: Home/End shortcuts should preventDefault
keithamus 4d6dbc8
test: add hidden toolbar to examples
keithamus 44edfbc
test: fixup example & test html
keithamus d91d2f0
fix: apply focus event listener only once
keithamus 434e68c
style: move let binding closer to first use
keithamus b8777de
docs: add README note about data-md-button
keithamus dcfdbd7
docs: clarify focus management in readme
keithamus 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.