Jagster
(Jakke Lehtonen)
October 7, 2024, 10:16am
1
Let’s try
[details open]
This should be visible
[/details]
This should be visible
And
<details open>
This should be visible
</details>
This should be visible
I don’t know when this broke, because I don’t use it every day. But [details open]
worked earlier. I use open
every now and then when sharing AI conversations.
3 Likes
nat
(Natalie T)
October 7, 2024, 12:36pm
2
Hmm unfortunately this looks like a regression from quite a while ago.
This won’t be an urgent fix for us so adding a pr-welcome for now.
2 Likes
Jagster
(Jakke Lehtonen)
October 7, 2024, 5:16pm
3
Fair enough.
It is rarely used, I reckon. And I can bypass it using <details>
and <summary>
. I lose that cool AI-tag then, but perhaps I’ll survive without it
1 Like
Heliosurge
(Dan DeMontmorency)
October 7, 2024, 6:21pm
4
Hey. I have always used details like this
[details="open"]
This should be visible
[/details]
open
This should be visible
I wasn’t aware you could also use
<details open>
This should be visible
</details>
Will try with the =
<details=“open”>
This should be visible
Doesn’t work as above
<details="open">
This should be visible
</details>
Only seems to work as per your last example.
This should be visible
Kind of cool though as the <> see s to default to open. Always learning new things)routes in discourse.
2 Likes
Jagster
(Jakke Lehtonen)
October 7, 2024, 7:37pm
5
Damn. I can’t use the <details open>
trick, because I have a totally wonderful design of Different look for details-block - #2 by Don in use.
Well, I must wait until someone who understands how things work has time to solve this. Not a deal breaker, though.
2 Likes
Heliosurge
(Dan DeMontmorency)
October 8, 2024, 12:49am
6
That is pretty sweet! Thanks for highlighting Don’s awesome component!
1 Like
That will do it:
discourse:main
← jjaffeux:details-open
opened 01:17AM - 08 Oct 24 UTC
Supporting `open` allows to show a `details` block open by default.
Usage:
…
```
[details open]
my visible content
[/details]
```
<!--
NOTE: All pull requests should have:
- Tests (rspec in Ruby, qunit in JavaScript). If no tests are included, please explain why.
- A descriptive title and description with context about the changes.
- Good commit messages with the correct prefixes, see: https://meta.discourse.org/t/-/19392
- When there are UX/UI changes, please add before/after screenshots, including mobile and desktop.
- For flakey tests, please describe the error you were having.
-->
I was waiting for laundromat
3 Likes
Heliosurge
(Dan DeMontmorency)
October 8, 2024, 3:45pm
9
I’d the open working for you on @Don Custom hidden details?
I get this
Heliosurge
(Dan DeMontmorency)
October 8, 2024, 4:18pm
11
I see the topic was opened. It was closed earlier. Answers my question to Jag. Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.