Skip to content
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

Dimensions Panel: Add new ToolsPanel component and update spacing supports #32392

Merged
merged 50 commits into from
Aug 10, 2021
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
795fe99
Add utils to spacing supports to check or reset values
aaronrobertshaw May 31, 2021
dfb1403
Draft block support panel
aaronrobertshaw May 31, 2021
0cb9f82
Update spacing hook to use new block support panel
aaronrobertshaw May 31, 2021
1b23fad
Update block support panel to handle false children
aaronrobertshaw Jun 1, 2021
2487805
Conditionally display spacing block support controls
aaronrobertshaw Jun 1, 2021
696070f
Draft README for BlockSupportPanel
aaronrobertshaw Jun 1, 2021
03c87c4
Make block supports panel handle filtered children
aaronrobertshaw Jun 1, 2021
5fa856f
Add initial tests for block supports panel
aaronrobertshaw Jun 1, 2021
7fb7e8a
Add story for block support panel
aaronrobertshaw Jun 1, 2021
62d7895
Rename spacing support to dimensions
aaronrobertshaw Jun 2, 2021
5f7b39f
Rename spacing support to dimensions in FSE
aaronrobertshaw Jun 2, 2021
db0c413
Update GlobalStyles dimensions panel
aaronrobertshaw Jun 2, 2021
dd015b0
Add means to handle default controls in block support panel
aaronrobertshaw Jun 4, 2021
659a79e
Change default controls display in block supports panel
aaronrobertshaw Jun 7, 2021
213d250
Make default controls still show after reset all
aaronrobertshaw Jun 7, 2021
a96dc35
Change back to default controls always displaying
aaronrobertshaw Jun 9, 2021
481ea39
Tweak panel to make it a little more generic
aaronrobertshaw Jun 23, 2021
0d75ba7
Simplify progressive disclosure panel state
aaronrobertshaw Jul 8, 2021
ffedb61
Add progressive disclosure panel item component
aaronrobertshaw Jul 8, 2021
ae4a3b2
Update dimensions global style sidebar panel
aaronrobertshaw Jul 8, 2021
e7a89ea
Update docs and comments after restructure
aaronrobertshaw Jul 12, 2021
07420bc
Update panel story with new item component
aaronrobertshaw Jul 12, 2021
9ec400f
Update tests to handle new panel item component
aaronrobertshaw Jul 12, 2021
a4d96b0
Clean new style objects after resetting spacing values
aaronrobertshaw Jul 21, 2021
17bd1b6
Disable default control menu items when they have no value
aaronrobertshaw Jul 22, 2021
4e33e6c
Add test for disabling default control menu items
aaronrobertshaw Jul 22, 2021
3609b5a
Add cleanEmptyObject to dimensions resetAll
aaronrobertshaw Jul 27, 2021
5746e25
Switch panel to grid layout for future multi-column layout
aaronrobertshaw Jul 27, 2021
c8d96ee
Tweak defaults for controls spacing in progressive disclosure panel
aaronrobertshaw Jul 28, 2021
7c22312
Fix Global Styles sidebar panel styling
aaronrobertshaw Jul 28, 2021
dbaa31c
Handle cases where panel item's inner element returns null
aaronrobertshaw Jul 29, 2021
8f196bc
Correct component name in readme
aaronrobertshaw Jul 30, 2021
76a2b8d
Update readme with experimental alert and improved prop format
aaronrobertshaw Jul 30, 2021
224c0ea
Fix menuItem child filtering using Children util.
aaronrobertshaw Jul 30, 2021
8343c9b
Accurately name the ProgressiveDisclosurePanelItem in tests
aaronrobertshaw Jul 30, 2021
6068bec
Initial pass at restructuring component
aaronrobertshaw Jul 30, 2021
48388f5
Rename title component and props to header
aaronrobertshaw Jul 30, 2021
92bcf52
Change progressive panel items to register themselves
aaronrobertshaw Aug 2, 2021
a624202
Change menu item selection state to enum
aaronrobertshaw Aug 2, 2021
eaad38e
Improve tests and rename to ToolsPanel
aaronrobertshaw Aug 3, 2021
8a7df11
Refactor panel context to be consistent with other components
aaronrobertshaw Aug 3, 2021
ccee3ac
Extract menu states to utils
aaronrobertshaw Aug 3, 2021
f2851b6
Fix caching of block attributes via callbacks stored in ToolsPanel state
aaronrobertshaw Aug 4, 2021
3d7e73c
Move execution of panel item callbacks into the item on menu toggle
aaronrobertshaw Aug 4, 2021
ed518fd
Convert to styled components and connect to context system
aaronrobertshaw Aug 5, 2021
f9411d1
Limit component.js files to presentation
aaronrobertshaw Aug 5, 2021
8218467
Switch approach back to being able to hide default controls
aaronrobertshaw Aug 6, 2021
70d7275
Tweak storybook entry for ToolsPanel
aaronrobertshaw Aug 6, 2021
d7bb353
Highlight experimental nature of component in story title
aaronrobertshaw Aug 10, 2021
c18dcda
Fix typo
aaronrobertshaw Aug 10, 2021
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
Fix Global Styles sidebar panel styling
aaronrobertshaw committed Jul 29, 2021

Verified

This commit was signed with the committer’s verified signature.
inteon Tim Ramlot
commit 7c22312a211d0f5ee131c524bdb89ad2a929616c
Original file line number Diff line number Diff line change
@@ -33,7 +33,8 @@
}
}

.block-editor-block-inspector {
.block-editor-block-inspector,
.edit-site {
.components-progressive-disclosure-panel {
> div,
> fieldset {