mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
Update @wordpress packages
Update packages to include these bug fixes from Gutenberg: - Include cascading properties in Navigation deprecation - Reorganize e2e tests folders and file - Border panel: Update to display multiple palette origins - Add CSS fix for 33580 - Add: Uneditable duotone palette on the palette gradient panel - Site Editor: Allow editing custom template title - Writing Flow: Double escape unselects all blocks - Fix icon scaling. - [Block Library - Query Pagination Next/Previous]: Remove text and link color support - Add: Border indication to global styles colors. - Color Picker: Improve border, padding, and box shadow styles. - theme.json: sort keys alphabetically - Remove navigationArea context. See #54487. git-svn-id: https://develop.svn.wordpress.org/trunk@52277 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -108,6 +108,33 @@ function handle_legacy_widget_preview_iframe() {
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* Hide root level text nodes */
|
||||
body {
|
||||
font-size: 0 !important;
|
||||
}
|
||||
|
||||
/* Hide non-widget elements */
|
||||
body *:not(#page):not(#content):not(.widget):not(.widget *) {
|
||||
display: none !important;
|
||||
font-size: 0 !important;
|
||||
height: 0 !important;
|
||||
left: -9999px !important;
|
||||
max-height: 0 !important;
|
||||
max-width: 0 !important;
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
position: absolute !important;
|
||||
top: -9999px !important;
|
||||
transform: translate(-9999px, -9999px) !important;
|
||||
visibility: hidden !important;
|
||||
z-index: -999 !important;
|
||||
}
|
||||
|
||||
/* Restore widget font-size */
|
||||
.widget {
|
||||
font-size: var(--global--font-size-base);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
@@ -284,14 +284,6 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
||||
$inner_blocks = new WP_Block_List( $parsed_blocks, $attributes );
|
||||
}
|
||||
|
||||
if ( ! empty( $block->context['navigationArea'] ) ) {
|
||||
$area = $block->context['navigationArea'];
|
||||
$mapping = get_option( 'wp_navigation_areas', array() );
|
||||
if ( ! empty( $mapping[ $area ] ) ) {
|
||||
$attributes['ref'] = $mapping[ $area ];
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure that blocks saved with the legacy ref attribute name (navigationMenuId) continue to render.
|
||||
if ( array_key_exists( 'navigationMenuId', $attributes ) ) {
|
||||
$attributes['ref'] = $attributes['navigationMenuId'];
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true
|
||||
"text": false
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"html": false,
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"link": true
|
||||
"text": false
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
|
||||
Reference in New Issue
Block a user