Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
8897a61
Initial commit.
jffng Jun 12, 2024
bb67231
Use interactivity API.
jffng Jun 12, 2024
e7bf6d4
Incorporate heading level.
jffng Jun 14, 2024
541f88a
Add text align.
jffng Jun 14, 2024
dbb822d
Scaffold an icon for the accordion title.
jffng Jun 18, 2024
7a5c73c
Convert to HTML tag processor.
jffng Jun 18, 2024
8c55763
Make classnames consistent.
jffng Jun 18, 2024
1299625
Fix accordion within accordion bug.
jffng Jun 20, 2024
71c3a4f
Add toggle and format.
jffng Jun 20, 2024
6f30b69
allow text align to work.
jffng Jun 20, 2024
dfc4070
Add layout support
jffng Jun 20, 2024
bce6ec9
Downgrade wp-scripts for now.
jffng Jun 20, 2024
b38778a
Add icon styles.
jffng Jun 21, 2024
ecf287c
Use background as mask instead.
jffng Jun 21, 2024
c206519
Rename to accordion-item.
jffng Jun 21, 2024
12ee418
Format.
jffng Jun 21, 2024
7db5ca6
Format.
jffng Jun 21, 2024
129713c
Update colors.
jffng Jun 21, 2024
b6ff4be
Add setting for icon position.
jffng Jun 24, 2024
11d2c9a
Allow no icon option.
jffng Jun 25, 2024
b03af8d
Replace with custom icon.
jffng Jun 25, 2024
8126131
Convert to two blocks.
jffng Jul 1, 2024
c27583c
Refactor iAPI.
jffng Jul 1, 2024
e6939c5
Fix icon display.
jffng Jul 1, 2024
1a2728c
Remove unused CSS for now.
jffng Jul 1, 2024
180c4db
Make id more specific.
jffng Jul 2, 2024
ec1b458
Remove zip.
jffng Jul 2, 2024
4ebfc34
Remove comments.
jffng Jul 2, 2024
1db0e5f
Allow multiple accordion items.
jffng Jul 2, 2024
d186c0a
WIP.
jffng Jul 2, 2024
c4f5737
Fix array filtering bug.
jffng Jul 9, 2024
c098b30
Cleanup unused classes.
jffng Jul 9, 2024
cbd7dee
Refactor so styles live at top level block and no need for textAlign.
jffng Jul 9, 2024
185a97f
Update server side register with correct block names.
jffng Jul 9, 2024
610031a
Simplify to accordion item.
jffng Jul 11, 2024
8cb37fe
Fix classes and format.
jffng Jul 11, 2024
ce78480
Add support for border and typography.
jffng Jul 12, 2024
9bd3ab0
Enable more typography and border support.
jffng Jul 12, 2024
c78d40f
Remove build files.
jffng Jul 16, 2024
cb175fe
Ignore package-lock
jffng Jul 16, 2024
9880187
Remove editorconfig.
jffng Jul 16, 2024
91889f5
Adds css grid based animation.
jffng Jul 16, 2024
1e1d4f0
Format.
jffng Jul 16, 2024
49ed8a7
Bump wordpress/scripts to highest 27.
jffng Jul 18, 2024
f5f7227
Add color support.
jffng Jul 18, 2024
0f06e5a
Enable multiple items to be open at once.
jffng Jul 18, 2024
119f118
Separate trigger and content blocks.
jffng Jul 18, 2024
fd12f83
Enable template locking.
jffng Jul 19, 2024
f491539
Enable open by default.
jffng Jul 19, 2024
5936210
Clean up.
jffng Jul 19, 2024
ecb268c
Replace icons with confusing ones.
jffng Jul 19, 2024
782b12b
Enable better icon positioning and sizing.
jffng Jul 19, 2024
e63b67f
Support anchors.
jffng Jul 19, 2024
7abda6a
Fix aria implementation.
jffng Jul 19, 2024
0988f95
Bump version.
jffng Jul 19, 2024
ab0a2a0
Fix how styles are applied.
jffng Jul 19, 2024
2b05962
Replace icons and simplify names.
jffng Jul 22, 2024
86fb66f
Remove padding controls because it messes up the show/hide behavior.
jffng Jul 22, 2024
d3b1079
Change the icon open/close states.
jffng Jul 22, 2024
80a866b
Fix icon color inheritance.
jffng Jul 22, 2024
9c40635
Add transition for only users who have no preference set.
jffng Jul 22, 2024
245a2bf
Fix clip and fillRule.
jffng Jul 24, 2024
8d2821a
Use wrapping div so padding can be applied as expected.
jffng Jul 24, 2024
7d8373b
Change setting name to autoclose and make false by default.
jffng Jul 24, 2024
75d516e
Fix icon.
jffng Jul 24, 2024
5169077
Move icons to settings of trigger.
jffng Jul 24, 2024
8929342
Rename.
jffng Jul 25, 2024
c5b4a3c
Reorder and label the icon options.
jffng Jul 25, 2024
a289d2e
Allow background image and only vertical margin.
jffng Jul 25, 2024
90344a3
Improve insertion UX.
jffng Jul 25, 2024
fac32de
Add back hidden html attribute.
jffng Jul 25, 2024
6a62f44
WIP determine if block is selected.
jffng Jul 25, 2024
81add00
Auto expand and close based on selection.
jffng Jul 26, 2024
9e604cf
More sensible placeholders.
jffng Jul 26, 2024
1da0a51
Fix ariaHidden -> aria-hidden.
jffng Jul 26, 2024
20ad058
Bump minor version.
jffng Jul 26, 2024
7338b2d
Force margin on wrapper div.
jffng Jul 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format.
  • Loading branch information
jffng committed Jul 16, 2024
commit 1e1d4f06dbb90cdacb313d8c65f6e17f5ca08788
8 changes: 5 additions & 3 deletions accordion/src/accordion-item/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ export default function Edit( { attributes, setAttributes } ) {
</PanelRow>
</PanelBody>
</InspectorControls>
<div { ...useBlockProps({
className: 'is-open', // Force the editing interface to be open for now.
}) }>
<div
{ ...useBlockProps( {
className: 'is-open', // Force the editing interface to be open for now.
} ) }
>
<TagName className={ headingClassName }>
<button className="wpsp-accordion-item__toggle">
<RichText
Expand Down
2 changes: 1 addition & 1 deletion accordion/src/accordion/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { state, actions } = store( 'wpsp/accordion', {
const id = attributes[ 'aria-controls' ];
const context = getContext();
if ( context.isOpen.includes( id ) ) {
context.isOpen = []
context.isOpen = [];
} else {
context.isOpen = [ id ];
}
Expand Down