Open Elijbet opened 2 years ago
I think we should probably just hide an inner container when hidden is on the host instead of applying styles directly on the host.
In a perfect world, we could keep the host styles pretty minimal to just things like the default display type and they wouldn't change during the component runtime.
Spike effort to determine which components should be addressed following the pattern Matt mentions above.
This may be superseded by https://github.com/Esri/calcite-design-system/issues/8623.
Background
We need to ensure that
hidden
works consistently across components.The snipped below was tried as a solution but reverted back. Aside from breaking transition on the scrim, it also doesn't align with the consumer's assumption about how Calcite hides elements and how native HTML elements use it.
Desired Outcome
Ensure that hidden worked consistently across components.
Related:
5137 #3821