Closed andrewspy closed 7 years ago
It is working now when I unit test it. Probably need to investigate on my app. closing it now. Sorry for the trouble.
Just wanted to add that you need to specify a CSS style inside a custom element to properly hide <paper-icon-button>
inside the custom element, i.e:-
<style>
paper-icon-button[hidden] {
display: none;
}
</style>
Took me a while to figure that out. Thanks anyway!
Thanks for the tip, although this still sounds like a bug to me. Shouldn't it be possible to do this in the paper-icon-button code so we don't have to keep putting this boiler plate code into the CSS? Is there some reason it's not possible to be built into the component?
It looks like the style of the component can be updated in the same way to support this. This probably just wasn't done for paper-icon-button, so I'd definitely consider this a bug still.
Bumping this -- is there a good reason why this element does not define its own [hidden]
style when so many official Paper elements others do?
EDIT: Sorry, that came off a little aggressive. What I meant to say was "I would happily open a PR to add a [hidden]
style for this element if it would be welcome. Thanks!
Description
hidden
attribute not working on Chrome. Tested working on Firefox/Edge.Expected outcome
Should be hidden
Actual outcome
Not hidden
Live Demo
Steps to reproduce
paper-icon-button
element in the page withhidden
attribute.Browsers Affected