-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
WP_Theme_JSON
classes: clarify status of position.fixed
#48635
Comments
cc people who were involved in this work @andrewserong @tellthemachines @jameskoster @aaronrobertshaw @carolinan Sorry if this is already clear for everyone else. Certainly, it is not for me, so I thought I'd share to avoid bugs due to under/over-backporting in the future. |
Thanks for the ping @oandregal!
Good idea to add some documentation. I'll try to recap the current state:
Another way of putting it would be: imagine if what's in core is what's currently in Gutenberg, and then I open up a PR to propose that for 6.3 work it'd be easier if appearanceTools opted-in to What do you think? I can open up a quick PR to do that. |
I've opened up a PR to clarify the status of the opt-in over in: #48660 |
Thanks for the context, Andrew, that clarifies it a bit more for me.
According to this bit, it sounds like adding a comment stating this is not to backport until we are ready (support fixed in core blocks) could be useful. Thanks for wrangling it. |
What problem does this address?
In comparing Gutenberg and WordPress core versions of the
WP_Theme_JSON
class, I realized theposition.sticked
setting/style was backported but thepostition.fixed
is in a mixed position.What I know
This core ticket https://core.trac.wordpress.org/ticket/57618 and corresponding PR WordPress/wordpress-develop#3973 backported to core support for
position.sticky
, where it's mentioned that:However, WordPress core still considers
position.fixed
a valid setting, as per https://github.com/WordPress/wordpress-develop/pull/3973/files#diff-e12c3008d747d1bec5be9927c5e7b1ced0a88641abe52c278d495da936714817R343Next steps
I don't know.
Without having the full context, I presume we may need to:
WordPress core: do not have
postition.fixed
as a valid setting?Gutenberg: if making Gutenberg work like core is not feasible, at least we need to document the situation. In other cases where we don't want to backport some code we add a comment, like we do for fonts and appearance tools.
The text was updated successfully, but these errors were encountered: