[wp-trac] [WordPress Trac] #54250: Twenty Twenty One: Editor Buttons margins incompatible with gap
WordPress Trac
noreply at wordpress.org
Tue Oct 19 13:51:07 UTC 2021
#54250: Twenty Twenty One: Editor Buttons margins incompatible with gap
--------------------------------+------------------------------
Reporter: stacimc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing-info | Focuses:
--------------------------------+------------------------------
Comment (by aristath):
Steps to reproduce and test
1. Use the twentytwentyone theme.
2. In `style.css`, add this:
{{{#!css
div {
background-image: url("./assets/images/Daffodils.jpg") !important;
}
}}}
Check and verify that the image is everywhere.
3. In `functions.php` add the following:
{{{#!php
add_filter( 'should_load_separate_core_block_assets', '__return_true' );
add_filter( 'styles_inline_size_limit', function( $size ) {
return 1000000; // Extreme, but this is just for the purpose of a
test.
});
add_action( 'wp_enqueue_scripts', function() {
wp_style_add_data( 'twenty-twenty-one-style', 'path',
get_theme_file_path( 'style.css' ) );
}, 20 );
}}}
Without the patch: the image no longer shows as the background.
With the patch: the image should show.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54250#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list