Closed
Bug 1964412
Opened 1 year ago
Closed 18 days ago
hidden attribute doesn't work as expected for reusable components with a display property set
Categories
(Toolkit :: UI Widgets, defect, P2)
Toolkit
UI Widgets
Tracking
()
RESOLVED
DUPLICATE
of bug 2051196
People
(Reporter: mkennedy, Unassigned)
References
Details
(Whiteboard: [recomp])
Currently if hidden attribute is applied to a reusable component that already has display property set (which is almost all of them), the component will not be visually hidden.
Steps to reproduce
- Add a
hiddenattribute to a reusable component (e.g.<moz-button label="Button" hidden></moz-button>)
Expected Behavior
The component is no longer visible, per hidden attribute spec.
Actual Behavior
The component is still visible.
Updated•1 year ago
|
| Reporter | ||
Comment 1•1 year ago
•
|
||
After discussion, we've decided to add the following CSS at a global level to ensure hidden works as expected.
[hidden] {
display: none !important;
}
The solution is a universal one and also recommended.
| Reporter | ||
Comment 2•1 year ago
|
||
It was noted in the discussion that a part of this work should include checking everywhere and verifying that the solution won't break any previous behavior: e.g. finebar.css
Updated•2 months ago
|
Type: enhancement → defect
Summary: Prevent overriding of hidden attribute on reusable components by default → hidden attribute doesn't work as expected for reusable components with a display property set
Comment 5•18 days ago
|
||
This has been fixed by the work in Bug 2051196
You need to log in
before you can comment on or make changes to this bug.
Description
•