-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Implementing new UX for invoking rich text Link UI #57986
Merged
Merged
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b943258
Proof of concept
getdave b4bc075
Replace Unlink button in toolbar with edit link button
jeryj 101723a
Avoid need for anchor hook
getdave bbde341
Activating a link via keyboard or toolbar goes to preview mode
getdave 74a3e9e
Remove clickedLink state
jeryj cd51c57
Fix bug where no contentEditable would crash block
jeryj 8fde809
Fix some e2e tests
jeryj b7659ef
Fix bug with collapsed selections at edge
getdave 016a3ea
Revert unwanted stuff
getdave e7286f6
Revert "Revert unwanted stuff"
jeryj b7ba204
Revert "Fix bug with collapsed selections at edge"
jeryj ec501ea
Check for isActive before opening popover on link click
jeryj 2f6b91e
Return focus to the element that opened the link control popover
jeryj 94e332a
Use onFocusOutside to prevent stealing focus
jeryj 9da61c7
Change name back to stopAddingLink
jeryj c59c5c0
Add comments
jeryj 5091a0a
Only add link for email and urls if it's a new link
jeryj c006259
Update test for escape from link popover to return focus
jeryj 76b89d3
Leave link UI open after initial creation
jeryj 196d888
Fix createAndReselect test util
jeryj 8ff163c
Fix keyboard shortcut tests
getdave c3200f2
Fix and simplify updating URL test
getdave 21a8b12
Fix test for preserving state of advanced settings drawer
getdave 3ff54ff
Fix test for toggling link settings
getdave 2517f50
Fix link text change test
getdave 7ab61d1
Update Edit Link -> Edit link
jeryj 6b878f0
Change Edit link to Link
jeryj ba67044
Fix some tests
jeryj e75f2b1
Remove test no longer relevant
jeryj 783a378
Remove unused test. Add test for onFocusOutside
jeryj abf7fcc
Hopefully fix test that is passing locally but failing on github
jeryj 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
Oops, something went wrong.
Oops, something went wrong.
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.
I didn't want to add this
openedBy
state, as the popover has its own system for returning focus. For some reason, it's not working correctly with the Rich text element and split between iframe editor and toolbar in the header.