From 9225964063a0609de92268fea28d0aed66d86542 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 16 Oct 2023 04:41:13 +0000 Subject: [PATCH] Twenty Thirteen, Twenty Sixteen: Use default display for summary element. Within the details block, style the `summary` element using the default display, `list-item`, this ensures the toggle icon appears indicating the summary can be expanded or contracted. Props ankit-k-gupta, nicolefurlan, poena, sabernhardt. Fixes #58915. git-svn-id: https://develop.svn.wordpress.org/trunk@56940 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentysixteen/css/blocks.css | 6 ++++++ src/wp-content/themes/twentythirteen/css/blocks.css | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/wp-content/themes/twentysixteen/css/blocks.css b/src/wp-content/themes/twentysixteen/css/blocks.css index 47a13e04d9..de6f19fd53 100644 --- a/src/wp-content/themes/twentysixteen/css/blocks.css +++ b/src/wp-content/themes/twentysixteen/css/blocks.css @@ -319,6 +319,12 @@ hr.wp-block-separator { margin-bottom: 0; } +/* Details */ + +.wp-block-details > summary:first-of-type { + display: list-item; +} + /*-------------------------------------------------------------- 5.0 Blocks - Widget Blocks --------------------------------------------------------------*/ diff --git a/src/wp-content/themes/twentythirteen/css/blocks.css b/src/wp-content/themes/twentythirteen/css/blocks.css index 092b335d00..5eb588a4a6 100644 --- a/src/wp-content/themes/twentythirteen/css/blocks.css +++ b/src/wp-content/themes/twentythirteen/css/blocks.css @@ -544,6 +544,12 @@ body:not(.sidebar) .wp-block-table.alignfull { margin-bottom: 0; } +/* Details */ + +.wp-block-details > summary:first-of-type { + display: list-item; +} + /*-------------------------------------------------------------- 6.0 Blocks - Widgets --------------------------------------------------------------*/