Hello,

system.css hides all element in a collapsed field set by. All in the means all childs and childs of child ( whole tree )

html.js fieldset.collapsed * { display:none }

After that, a direct child of fieldset is which actually is the label which is clickable to uncollapse stuff, is hidden. But this should actually be shown in any case, collapsed or uncollapsed. So there are things like

html.js fieldset.collapsed legend { display:block }
html.js fieldset.collapsed legend a { display:block }
html.js fieldset.collapsed legend strong { display:block }

But if you have a plugin which changes the style of the label, the whole thing gets invisible. Properly, it would be correct to show the whole namespace from namespace, so

html.js fieldset.collapsed legend * { display:block }

Best regards

Eugen

Comments

eugenmayer’s picture

To maybe have an example. in my installation, the part looks like

<legen><a href="#"><b>Foobar</b></a></legend>

Dont ask for the reasons, its some module changing that. I mean ist sensless or more wrong compared to the original one

<legen><a href="#"><strong>Foobar</strong></a></legend>

But we could also think about

<legen><a href="#"><span class="bar">Foobar</span></a></legend>

Or whatever. In every other case then the defaul, and span woudl be invisble due the 'html.js fieldset.collapsed * { display:none }' rule.
But using

html.js fieldset.collapsed legend * { display:block }

would work in any case

eugenmayer’s picture

Status: Active » Needs review
eugenmayer’s picture

Version: 6.12 » 6.22
StatusFileSize
new402 bytes

Old, but still there :)

Status: Needs review » Needs work

The last submitted patch, collapsiblehiddenfix.patch, failed testing.

eugenmayer’s picture

StatusFileSize
new437 bytes

Patch was inversed and incomplete, sorry. reattached

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.