Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299325

.hidden class is overridden by .claro-details

$
0
0

Problem/Motivation

The css definition for .claro-details overrides any .hidden class on the element.

Steps to reproduce

In a hook_form_alter() add an `[#attribute][class][] = hidden` on an element of [#type] = `details` gets overridden by the .claro-details { display: block} definition.

Proposed resolution

Does the `.claro-details` definition need the `display: block`? Drupal's default is for `details` to display as `block`.

Remaining tasks

Possibly all that is required is to remove the display: block from the .claro-details definition.


Viewing all articles
Browse latest Browse all 299325

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>