Changes between Initial Version and Version 8 of Ticket #65900
- Timestamp:
- 08/18/2026 02:25:55 PM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #65900
- Property Milestone 7.1 → 7.1.1
- Property Component General → Editor
-
Ticket #65900 – Description
initial v8 1 Changes introduced in #74744 changed accordion content styles from display none to display hidden. This change caused visibility bug, padding devined in Accordion Panel take a space under the title1 Changes introduced in [https://github.com/WordPress/gutenberg/pull/74744 GB74744] changed accordion content styles from display none to display hidden. This change caused visibility bug, padding defined in Accordion Panel take a space under the title 2 2 3 Steps to reproduce. add accordion to the page. 4 Set padding to Accordion Panel , for example 100px top, 100px bottom. 5 For better observabiliry, add 1px border for Accordion item 3 === Steps to reproduce. 4 - Add accordion to the page. 5 - Set padding to Accordion Panel , for example 100px top, 100px bottom. 6 - For better observability, add 1px border for Accordion item 6 7 7 8 8 9 Now open frontend page. And you will see huge gap with no content. 9 10 10 Issue11 === Issue 11 12 12 Changes introduced in #74744 changed the accordion content styles from display: none to visibility: hidden.13 Changes introduced in [https://github.com/WordPress/gutenberg/pull/74744 GB74744] changed the accordion content styles from `display: none` to `visibility: hidden`. 13 14 14 15 This causes a visibility/layout bug where padding defined on the Accordion Panel still occupies space even when the panel content is hidden. As a result, the hidden accordion content creates a large empty gap below the accordion title. 15 16 16 Steps to Reproduce17 Add an Accordion to a page.18 Set padding on the Accordion Panel, for example:19 Top: 100px20 Bottom: 100px21 For better visibility of the issue, add a 1px border to the Accordion Item.22 Open the page on the frontend.17 === Steps to Reproduce 18 - Add an Accordion to a page. 19 - Set padding on the Accordion Panel, for example: 20 - Top: 100px 21 - Bottom: 100px 22 - For better visibility of the issue, add a 1px border to the Accordion Item. 23 - Open the page on the frontend. 23 24 24 25 As a result - 25 26 A large empty gap appears below the accordion title, even though the accordion content is hidden. 26 27 27 The panel padding still takes up space because visibility: hiddenhides the content visually but does not remove it from the layout.28 The panel padding still takes up space because `visibility: hidden` hides the content visually but does not remove it from the layout. 28 29 29 Expected Result30 === Expected Result 30 31 31 When the accordion panel is closed, its content and associated spacing should not occupy any layout space, as was the case when display: nonewas used.32 When the accordion panel is closed, its content and associated spacing should not occupy any layout space, as was the case when `display: none` was used.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)