-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Update/unify link interfaces #6392 #7022
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
Closed
RockinRonE
wants to merge
29
commits into
WordPress:master
from
RockinRonE:update/unify-link-interfaces
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
10e4082
Remove submit button; Add ellipsis button
RockinRonE 7a99dfe
add toggle settings to state
RockinRonE 3aaf90a
Add setLinkTarget func
RockinRonE 14e09dc
Pass props to UrlInputButton
RockinRonE efdef98
Add set target attribute
RockinRonE 2d65e82
Add target attribute
RockinRonE 66d91f7
Add rel attribute
RockinRonE b604f7e
Set rel attribute
RockinRonE cd05ad6
Add prependHTTP
RockinRonE 13025ab
Update blockAttributes with target and rel
RockinRonE b1aec98
Add popover and remove commented out code
RockinRonE 2935e5f
Add onKeyDown functions
RockinRonE 65541c4
Add keyDown handling
RockinRonE a79a991
Add setAttributes func to submit
RockinRonE 3d9ce25
Add edit link section
RockinRonE 141bf49
Remove box-shadow on focus
RockinRonE 0b23bea
Add null default value
RockinRonE b538789
Add correct input and edit toggle forms
RockinRonE 85f9fa3
Destructure props and remove toggle on pressing enter
RockinRonE f109c4c
Add toggle state reflected in toggle button
RockinRonE 45193d2
Add disable lint and remove log statement
RockinRonE 5d45dfb
Add href and target attrs to tests
RockinRonE 4bc4620
Remove close button test
RockinRonE acb5b5a
Remove close form test
RockinRonE 0edf482
fix merge conflicts
RockinRonE c14e4b3
fix formatting
RockinRonE 345d3e7
fix formatting
RockinRonE ce4d81b
remove unused import
RockinRonE ccecb2b
remove whitespace
RockinRonE 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
Add setLinkTarget func
- Loading branch information
commit 3aaf90a326c995368854445b156ee229b81c2826
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
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.
The coding guidelines for CSS naming is written such that this is not a valid class name to assign to this component. It's reflective of the fact that components are meant to compose one another, and shouldn't be inheriting behaviors, since it can lead to accidental breakage if a change to the format toolbar inadvertently affects this component. Isolating components to silo their behavior / silos helps prevent this.
What I'd like to see instead, and what seemed to be hinted by the idea of "unifying" in the original pull request, is that instead of duplicating what already exists elsewhere, we ought to consider creating a new, separate component which contains the shared behavior (of link management), then use that both here and in other existing usage.