This is a feedback topic for details styling changes experiment.
An example of the details
tag using BBCode:
abc
testing 123 123
123
An example of the details
tag using HTML:
This is a feedback topic for details styling changes experiment.
An example of the details
tag using BBCode:
testing 123 123
123
An example of the details
tag using HTML:
Using the HTML <details>
seems to run the content into the summary:
Oh, I see. It’s not getting an automatic new line and I’ve not manually added one:
<details open>
<summary>
This is an open details
</summary>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In et ultricies ante. Fusce vel nisi tristique, tristique urna ut, dapibus lacus. Nulla dignissim quis ex a interdum. Integer nisl nisl, egestas in efficitur a, gravida vitae odio. Proin ut velit sit amet quam malesuada aliquet. Cras tempus in risus vel lacinia. Vivamus ut luctus nunc. Duis risus velit, molestie non lectus vitae, ornare gravida elit.
</details>
This text will be hidden
Yep, you are correct. It looks like when adding this yourself, you didnt include p
tags, while when adding it with the details insertion tool, it will do that.
Yours:
<details dir="ltr" open="">
<summary>
This is a HTML details
</summary>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In et ultricies ante. Fusce vel nisi tristique, tristique urna ut, dapibus lacus. Nulla dignissim quis ex a interdum. Integer nisl nisl, egestas in efficitur a, gravida vitae odio. Proin ut velit sit amet quam malesuada aliquet. Cras tempus in risus vel lacinia. Vivamus ut luctus nunc. Duis risus velit, molestie non lectus vitae, ornare gravida elit.
</details>
Insertion Tools:
<details dir="ltr" open="">
<summary>Summary</summary>
<p>This text will be hidden</p>
</details>
The p
tag added by the insertion tool keeps the text on a new line.
Ah. You don’t need to add the <p>
tags in the existing style. I suppose this new one is more <p>
icky.
Some initial feedback:
[details]
. It might be “just because it’s new”, but…update:
That was sort of the point, to make it better means some diverging from the way it was, especially diverging from a browser default. We are now following the pattern of the “Replies” button at the bottom of posts with multiple replies.
Nice observation!
Another nice one, will look into this
Im not sure that using a black/dark emoji on a dark/black background is something we could solve here…
This one is also a bit confusing, were you clicking somewhere other than the text before? Was it common for you to click here?
Yeah. I used this quite a lot, especially on mobile. The smaller area is harder to hit. I think it’s where my thumb is on the screen.
Yup! That’s one of the expectations of platform’s defaults: <details>
, like checkboxes/radios and their <label>
s, look and behave in a certain way. For example, I do the same on GH:
I don’t know if making it similar to the other thing is good actually
Hello! Please forgive me if my question is not entirely correct
Would it be possible to add a function to show hidden content depending on the user group. For example, if the user is not registered or is not a member of this or that group, then he will not be able to view the details and a modal window will be displayed for him, where there will be instructions for gaining access (for example, register)?
I know about the existence of theme components/plugins that hide the entire topic or category. Simply, sometimes you want to give users the opportunity to read only primary information.
It’s not something that’s been utilized that way, as typically a category is restricted to certain groups or users, and not details within a post in that category.
That being said, I’m sure this could be done in a plugin, but this topic wouldnt be ideal for that discussion.
Minor nitpick, but this looks slightly off from the quote background color, this is the kind of “close but not quite” which can seem like a mistake. I think it should either match, or be more obviously different.
Other thoughts…
This is a manual quote
This is a partial quote, which can be expanded
Perhaps we co-opt this style slightly? Same padding, bg, and expansion… we’d have to at least drop the border to make it look less quote-like
Maybe a different style completely?
Giving up on alignment here does bother me a bit:
This is most noticeable when you lead with a details block
Hello I just thinking out loud… Is the header necessary to show by default? I mean it is most of time using the default Summary
and probably most of users don’t know that it can be unique and maybe it will be more natural if the text inside details
will be truncated with ellipsis and the end will show ...show more
if it’s collapsed and show less
if expanded. For example the content truncated first line would be the header automatically. This can be a default view but users can add header separately if they want?
To be fair: the implementation is that clicking a label should set its radiobutton, not necessarily that clicking the entire empty row behind a label also works.
How would you feel about the hover state being permanent. Then it would be aligned as a “button” with the text below and above.
Maybe … @awesomerobot thoughts?
Minor bug – When you open a detail, you scroll up until you load more posts (and a little more) ; once you come back, the detail content is not rendered (EDIT: or closed, but I would not expect to be closed here)
Yeah treating it like a button could work… almost like the existing HTML details tag, (plus a chevron)
Also…
here are the deets