Opened 2 years ago
Closed 2 years ago
#60633 closed defect (bug) (fixed)
Shadow: add shadow control to appearanceTools opt-ins
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Editor | Keywords: | has-patch needs-testing fixed-major dev-reviewed |
| Focuses: | Cc: |
Description
This is a ticket to track the backport of the following Gutenberg PR to WordPress 6.5:
https://github.com/WordPress/gutenberg/pull/58766
Description:
It enables to control default preset shadows in the UI via appearanceTools
this change adds array( 'shadow', 'defaultPresets' ) to APPEARANCE_TOOLS_OPT_INS
Change History (23)
This ticket was mentioned in PR #6178 on WordPress/wordpress-develop by @madhudollu.
2 years ago
#1
- Keywords has-patch has-unit-tests added
#2
@
2 years ago
- Component changed from General to Editor
The PR and ticket are labelled as an enhancement and we're past the enhancement stage for 6.5. Can you elaborate why it is important to have this in 6.5 still?
#3
@
2 years ago
- Milestone changed from Awaiting Review to 6.5
- Type changed from enhancement to defect (bug)
#5
@
2 years ago
- Keywords commit added
This is not really an enhancement.
All new customization tools that are added to blocks are meant to be opt-in behind the appearanceTools flag which ensures that themes that use this flag will get these tools but the ones that choose to control manually all the available tools won't.
So I think we should commit this PR.
@swissspidy commented on PR #6178:
2 years ago
#7
#8
@
2 years ago
I noticed that the Gutenberg PR was not fully backported. In the original PR, defaultPresets was changed from true to false in the default theme.json:
But [57717] does not include any theme.json changes, so defaultPresets remains true:
This means that in the Classic theme, blocks are inadvertently provided with shadow control by default.
I think this issue should be resolved in WP6.5, but if I want to submit a patch/PR, should I check out the trunk branch of wordpress-develop?
This ticket was mentioned in PR #6255 on WordPress/wordpress-develop by @wildworks.
2 years ago
#10
Trac ticket: https://core.trac.wordpress.org/ticket/60633
#11
@
2 years ago
I submitted a PR: https://github.com/WordPress/wordpress-develop/pull/6255
@swissspidy commented on PR #6255:
2 years ago
#14
What are the testing instructions for this?
@youknowriad commented on PR #6255:
2 years ago
#15
The testing instructions should be something like:
- Use a classic theme that doesn't have a theme.json or doesn't have
appearanceTools: truein its theme.json. - The shadow controls shouldn't appear on the inspector control (sidebar) of the button block.
@swissspidy commented on PR #6255:
2 years ago
#16
Thanks @youknowriad, I can confirm this then 👍
@wildworks commented on PR #6255:
2 years ago
#18
- Use a classic theme that doesn't have a theme.json or doesn't have appearanceTools: true in its theme.json.
- The shadow controls shouldn't appear on the inspector control (sidebar) of the button block.
Thank you. This is correct.
@swissspidy commented on PR #6255:
2 years ago
#19
Committed to trunk in https://core.trac.wordpress.org/changeset/57827
Needs double sign-off (dev-reviewed) from another committer for backporting to 6.5
#20
@
2 years ago
- Keywords fixed-major dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backport to 6.5, sign-off required.
@youknowriad commented on PR #6255:
2 years ago
#22
Added the "dev-reviewed" tag. This LGTM
Trac ticket: https://core.trac.wordpress.org/ticket/60633
It is a backport change for the following Gutenberg change:
https://github.com/WordPress/gutenberg/pull/58766
It adds
array( 'shadow', 'defaultPresets' )to appearance tools opt ins. and is also expected to merge in WordPress 6.5 (Beta 3)