Closed Herm71 closed 3 months ago
It worked! I also noticed that there were some redundant styles in details.css
that are now part of core/details
so I removed them. They were left over from when I was building my Details block using WordPress' experimental block (pre-WP6.3). Now they're gone.
https://github.com/ucsc/ucsc-2022/assets/1000543/864873b5-ccf2-4634-8863-1b2f214d83b5
What does this do/fix?
Adds a style-sheet for the Details Block with custom options. Edit style-sheet for Accordion Block to only target a class, not the
<details>
element itself. See description in Issue #305QA
Links to relevant issues
Screenshots/video:
Details front-end closed![details-variations-closed](https://github.com/ucsc/ucsc-2022/assets/1000543/de1d6da9-ae21-49d2-848c-834dd5e8e1f8)
Details front-end open![details-variations-open](https://github.com/ucsc/ucsc-2022/assets/1000543/acbe9d55-7509-4d1a-bdee-34c1686b4a5f)
Accordion front-end closed![accordion-closed](https://github.com/ucsc/ucsc-2022/assets/1000543/1b60a38c-d66b-499e-8ee0-4ae09b6e5491)
Accordion front-end open![accordion-open](https://github.com/ucsc/ucsc-2022/assets/1000543/756371a3-6bd7-4171-9b0b-dad8512c9cee)
Accordion in the Block Editor![accordion-block-editor](https://github.com/ucsc/ucsc-2022/assets/1000543/d1778bce-cd23-4236-80b4-6a4d3ad12fb0)
Details in the Block Editor![details-block-editor](https://github.com/ucsc/ucsc-2022/assets/1000543/663c3d06-596b-4909-b876-aa2fd1c031c4)
Details Styles![details-editor-styles](https://github.com/ucsc/ucsc-2022/assets/1000543/fb70603f-79de-4749-be1d-1b30e30d0b4b)