-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Move gallery link controls to the block toolbar #62762
Merged
Merged
Changes from 20 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0e6cc04
Move link dropdown to toolbar in gallery block
akasunil cac26ab
Update e2e test for gallery block's setting
akasunil a0c3301
Fix e2e test for gallery block images link setting
akasunil ebd5a36
Merge branch 'trunk' of personal.github.com:WordPress/gutenberg into …
akasunil 7e6f2c6
Fix unit test
akasunil 5ea3de1
Synced with trunk and resolved conflicts
akasunil 0c7a78b
Synced with trunk
akasunil ea17d8d
Added ToolbarDropdownMenu component instead of DropdownMenu
akasunil 88b75ac
remove remove extra padding around link icon
akasunil cd83a3e
Remove unused components
akasunil 6f40925
Revert "Synced with trunk"
akasunil c795bfa
Merge branch 'trunk' of personal.github.com:WordPress/gutenberg into …
akasunil 694e665
Improve snackbar notices for gallery block link control select
akasunil 8ad541b
Merge branch 'trunk' of personal.github.com:WordPress/gutenberg into …
akasunil b0f3339
Add constant for lightbox option in link control for gallery block
akasunil 8107157
Update getHrefAndDestination function to handle Link control value ch…
akasunil eddabc7
Add lightbox option in link control of gallery block
akasunil 3940299
Add info text for lightbox option in link control for gallery block
akasunil f3e8341
Set info text for lightbox option in single line
akasunil a321288
Merge branch 'trunk' of personal.github.com:WordPress/gutenberg into …
akasunil 1228c00
reverting expand of click option changes
akasunil 31dcc28
add change to resolve conflict
akasunil 0bf1cac
fix: Avoid unsupported Gallery MenuGroup usage (#63953)
dcalhoun 9456d3d
removing lightbox changes from edit component of gallery block
akasunil 7976411
Removing unneccessory class
akasunil 37a191b
Update link control lable in gallery block
akasunil 893666c
Update label in unit test
akasunil 16f87e7
Update text in snapshot
akasunil 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export const LINK_DESTINATION_NONE = 'none'; | ||
export const LINK_DESTINATION_MEDIA = 'media'; | ||
export const LINK_DESTINATION_LIGHTBOX = 'lightbox'; | ||
export const LINK_DESTINATION_ATTACHMENT = 'attachment'; | ||
export const LINK_DESTINATION_MEDIA_WP_CORE = 'file'; | ||
export const LINK_DESTINATION_ATTACHMENT_WP_CORE = 'post'; |
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
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.
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.
First, thank you for attempting to resolve the mobile unit test failures and for the ping. Much appreciated! 🙇🏻
Both
MenuGroup
andMenuItem
are unavailable for the native mobile editor currently. This results in the crash and unit test failure regarding theDropdown
component attempting to render/return anundefined
value.We encountered this situation before and addressed it in #35191 by bifurcating the code along the web and native platform line. It is not an ideal solution — see #35191 (comment) — but, unfortunately, the lack of support for
MenuGroup
andMenuItem
remains the current state.If we take a similar approach here, we might retain the previous
SelectControl
for native platforms. I opened #63953 implementing this option, if we'd like to use this approach to move the proposed web changes forward quickly.Unfortunately, I do not believe the native mobile team will prioritize
MenuGroup
orMenuItem
components in the near future.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.
@dcalhoun appreciate your response. Thank you for the details on the issue and PR too.
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.
@t-hamano is it worth doing this way?