-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add Accordions Block #64119
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
Add Accordions Block #64119
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
fe0aaee
Add initial accordion implementation.
jffng ebfc5f5
Refactor blocks for core loading.
jffng c58232f
Simplify state getter by storing id in the context.
jffng 4698eee
Clean up tag processing and try to initialize state on the server.
jffng 3c2c54b
Don't enqueue the frontend files if there's no content
luisherranz d4101b4
Stringify the autoclose value
luisherranz 872ecf1
Refactor to populate `context.isOpen` on the server
luisherranz 5f9e24a
Add comments to the server side rendering functions.
jffng b790e90
Improve the block editing UX
jffng 7a05993
Reword the auto-close toggle help text.
jffng cea68d0
Add padding to the content and trigger by default.
jffng 96c37c9
Fix aria-labelledby and aria-controls references.
jffng 151655b
Allow HeadingLevelOptions to be extended.
jffng 37315e4
Only allow bold, italic, image, and strikethrough for the Trigger.
jffng 7f17891
Disable keyboard navigation for focusable elements when aria-hidden i…
jffng 6c91e72
Fix __next40pxDefaultSize linting error.
jffng 72fdd46
Refactor how state and context are initialized to avoid the need for …
jffng 5967cf1
Use strings for openByDefault so boolean is in the generated JSON.
jffng db03ba8
Use inert instead of aria-hidden.
jffng 93deeee
Rename Trigger and Content to Header and Panel.
jffng 84112e3
Rename interactivity to script modules.
jffng 542ac20
Remove unused watch directive for setting the tabIndex.
jffng 2d07fba
Merge branch 'trunk' into try/accordion-block
mikachan 5ccd5e3
Move icon controls to top level
mikachan 89f3ffd
Fix linting
mikachan 2916ba6
Remove old GB experiments
mikachan 6fa545e
Remove icon selection
mikachan df7ee79
Select first Accordion Header by default
mikachan 1715381
Fix icon logic in save.js
mikachan 8d3aa4a
Remove layout controls from header and panel
mikachan 0f2ee27
Fix RTL icon position
mikachan 445f1d1
Remove layout from group and item
mikachan d4bb0e4
Add layout to accordion group
mikachan f713c57
Rename Accordion Group to Accordions
mikachan fb546f7
Use single useSelect
mikachan 0be4b65
Move accordion icons to icon library
mikachan 237af26
Remove color and padding from heading styles
mikachan 43dc276
Make heading CSS less specific
mikachan 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
Move icon controls to top level
- Loading branch information
commit 5ccd5e3a9aa355385730e2e9cee6430ef9a2b66f
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
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.