-
Notifications
You must be signed in to change notification settings - Fork 58
feat(block-theme): add search overlay block #4729
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 all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
3fe48ff
feat(blocks): scaffold search-overlay block
laurelfulford 49c9805
refactor(blocks): drop redundant block-theme guard in search-overlay
laurelfulford a3acfb2
feat(blocks): render search-overlay trigger button with block styles
laurelfulford f6bf4c9
refactor(blocks): thread blockClassName through search-overlay trigger
laurelfulford ba7b37d
feat(blocks): add overlay color control to search-overlay editor
laurelfulford 32c3c57
refactor(blocks): hoist useMultipleOriginColorsAndGradients in search…
laurelfulford 26ecc40
feat(blocks): render search-overlay trigger button server-side
laurelfulford 605f520
refactor(blocks): drop unneeded output buffer in search-overlay render
laurelfulford fcca213
feat(blocks): render search-overlay panel with search form
laurelfulford 11f99af
feat(blocks): hand off to Jetpack Instant Search when active
laurelfulford f30bedd
feat(blocks): style search-overlay trigger and panel
laurelfulford b5b79e9
refactor(blocks): make search-overlay panel respect theme tokens
laurelfulford ace3105
feat(blocks): add search-overlay open/close controller
laurelfulford b80e087
feat(blocks): trap focus and manage keyboard nav in search overlay
laurelfulford 49c651d
feat(blocks): fade search overlay in and out
laurelfulford bbc5542
refactor(blocks): move search-overlay color into the Color panel
laurelfulford 453ab23
refactor(blocks): align search-overlay panel SCSS with overlay-menu
laurelfulford b60c99d
fix(blocks): drop newspack-icon-close from search-overlay close button
laurelfulford feaaeea
feat(blocks): polish search-overlay close button and scrim interaction
laurelfulford 4de78c7
refactor(blocks): render search-overlay markup with PHP templates
laurelfulford 1e19631
refactor(blocks): default search-overlay panel to a translucent scrim
laurelfulford 4f53e16
refactor(blocks): mirror block-theme search overlay nuance
laurelfulford 2c35533
fix: applying review feedback
laurelfulford 3fd1c8a
fix: add tests
laurelfulford 704c243
fix: avoid issues with the focus callback firing after the overlay is…
laurelfulford 85e5f72
feat(block-theme): rename to Overlay Search; polish defaults
thomasguillot 9e17078
refactor(block-theme): drop default palette on Overlay Search
thomasguillot 35e972e
refactor(block-theme): drop icon-only aspect-ratio on Overlay Search
thomasguillot c2e7ff5
refactor(block-theme): defer SVG sizing to .wp-block-button rule
thomasguillot 2c2bae3
fix(block-theme): wrap overlay-menu trigger in .wp-block-button
thomasguillot 56d78f0
refactor(block-theme): use Newspack_UI_Icons for overlay block icons
thomasguillot 4f3eb24
fix(block-theme): default overlay-menu panel colors via block.json
thomasguillot 359ef64
fix(block-theme): use Newspack UI neutral token for overlay scrim
thomasguillot c3c2318
fix(block-theme): add block theme var as first scrim fallback
thomasguillot 5ab88f9
fix(block-theme): align overlay-menu scrim with overlay-search var chain
thomasguillot 704bc89
fix(block-theme): keep overlay-search panel below wp-admin toolbar
thomasguillot 83da487
fix(block-theme): swap overlay-search close button rems for tokens
thomasguillot c67a0e5
fix(block-theme): bump overlay-search close icon to 24px via token
thomasguillot 9f09461
fix(block-theme): offset overlay-search panel below wp admin bar
thomasguillot fa94702
fix(block-theme): center overlay-search close icon with grid
thomasguillot c43bfd4
fix(block-theme): add visible focus ring to overlay-search close
thomasguillot 2285c3a
fix(block-theme): radius + block svg on overlay-search close
thomasguillot c962eb8
refactor(block-theme): drop redundant overlay-search trigger flex rules
thomasguillot 96a0f89
refactor(block-theme): drop redundant overlay-menu trigger flex rules
thomasguillot e8bd7b6
fix(block-theme): align overlay-menu admin bar offset and stacking
thomasguillot 0164789
fix(block-theme): match overlay-menu close polish to overlay-search
thomasguillot 3eee171
fix(block-theme): size and color overlay-menu close icon svg
thomasguillot b9cc6e3
fix(block-theme): drop redundant aria-label and align content-size fa…
thomasguillot c031f2f
fix(block-theme): enqueue commons + use wp-dom-ready + per-panel sear…
thomasguillot 6fd9eaf
feat(block-theme): scale overlay-menu slide duration with panel width
thomasguillot f6b0e86
fix(block-theme): switch close-icon contrast to APCA, recompute on open
thomasguillot ab7ab42
fix(block-theme): sanitize overlay-menu panel inline styles + mock do…
thomasguillot add2236
fix(block-theme): keep overlay-menu trigger labeled when text is empty
thomasguillot 48c5000
fix(block-theme): match overlay-search editor trigger classes to fron…
thomasguillot 2bdd615
fix(block-theme): add fallbacks to panel color defaults and tighten t…
thomasguillot 16032b3
fix(block-theme): soften panel text color fallback to #1E1E1E
thomasguillot c769f22
refactor(blocks): move style registration to block.json
thomasguillot c119842
fix(blocks): lock overlay-menu trigger and panel against move/remove
thomasguillot 59fb57d
fix: update tests based on feedback
laurelfulford 305953f
fix: use print_svg() function
laurelfulford 4fcac57
fix: remove unneeded props
laurelfulford 4f8b255
fix: use wp_unique_id prefix and defer until neede
laurelfulford c4a2602
fix: remove unneeded esc_url()
laurelfulford 27bd3af
fix: remove unneeded data-overlay-id
laurelfulford db4b4e8
fix: use trigger text as dialog aria-label
laurelfulford 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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.