-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[calcite-loader, calcite-input-message] Drop active
in favor of hidden
#3821
Comments
Agreed. We do have some components that are not visible by default...
However, these use |
Do we need to allow this to be configured at all? Should users just be adding and removing the element, or does having the ability to toggle visibility via prop aid in a transition or fade-in or something? cc @asangma |
I don't think so. We just choose what we want to do.
That's a good question. If a user had to construct a As for |
In the case of I don't see any animation going on when setting active for this component. It's also not a component that contains any content, so there's no reason not to just remove it or set hidden property on it. |
active
in favor of hidden
active
in favor of hidden
I updated the issue to include |
Installed and assigned for verification. |
Re-assigning to revert prior to the upcoming release for additional testing and follow-up. |
Installed and assigned for verification. |
Verified on |
Description
Stems from https://github.com/Esri/calcite-components/pull/3778/files#r774706383
It seems that
calcite-loader/calcite-input-message[active]
is used to toggle visibility, so we should deprecate/remove it in favor of the globalhidden
attribute.https://codepen.io/jcfranco/pen/KKXQErV?editors=1000
To avoid breaking changes:
active
should be deprecatedhidden
should be added (these have higher precedence thanactive
)Proposed Advantages
One less custom prop to manage, and it aligns with existing HTML conventions.
Relevant Info
N/A
Which Component
calcite-loader
calcite-input-message
The text was updated successfully, but these errors were encountered: