-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details Block - Enable styles for the visible portion only, the hidden portion only, or both #54549
Comments
@richtabor I think a better, more expected flow, would be for all those block styling options to only apply to the summary by default. Then there would be no need to manually apply everything to a group block just to get back to your site's defaults. Example: set Appearance as Bold.. Now your expanded content is all bold too. Probably never going to be what you actually wanted. So now you have to wrap your content in a group block and set the Appearance of that block back to whatever your site's default weight is, which now you have to know and/or remember, and that will now be disconnected if you ever change the site's default Appearance weight, so you'll have to go through every single Details block and change that Appearance again. |
The problem is evident in Theme Twenty Twenty-Four FAQ: https://2024.wordpress.net/index.php/faqs/ In the moment, to achieve this behaviour, you have to style each Details section manually. => Very bad workflow! And now imagine a separate style only for the Summary section, maybe only once configured in the Website editor - Styles - Blocks - Details |
I would also like to be able to define the visible part as bold and other types of formatting, and the hidden part with a different formatting/style. |
Chiming in with what I think is a related limitation... In Two that may solve this but don't seem possible right now:
With the first, I could use With the second, I could use Alternatively, and it may be too late for this, but a |
Supporting |
What problem does this address?
When working with the DETAILS BLOCK, you have style options that only apply to the entire block. However, there are common use cases where you might want to style the visible portion differently from the hidden portion, such as a Q&A section, where the questions are bold and the answers are hidden and plain text.
What is your proposed solution?
Enable users to style the HIDDEN portion of the block separately from the VISIBLE portion. Perhaps having a toggle that says "apply to all OR apply to visible only OR apply to hidden only" ... and if visible or hidden only are selected, a 2nd set of styles opens for that portion of the block.
The text was updated successfully, but these errors were encountered: