Bad practice in page-editor.less

In the source code of confluence-7.2.0-rc2 (and previous versions), there is a CSS selector like below:

/* from master.css */
.hidden,
li.hidden {
    display: none !important;
    visibility: hidden;
}

This is overriding a library that I am using. The problem is the selector .hidden is too broad. display: none and visibility: hidden are different. Other tools may rely on one behavior and not the other.

1 Like