-
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
feat(list-item): deprecate open/close props in favor of expanded/collapsed #11003
base: dev
Are you sure you want to change the base?
Conversation
* When `true`, a close button is added to the component. | ||
* | ||
* @deprecated Use `collapsible` prop instead. | ||
*/ | ||
@property({ reflect: true }) closable = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be collapsible. It isn't collapsed, it isn't shown at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think closed/closable needs to remain as is.
@@ -357,20 +378,32 @@ export class ListItem | |||
To account for this semantics change, the checks for (this.hasUpdated || value != defaultValue) was added in this method | |||
Please refactor your code to reduce the need for this check. | |||
Docs: https://qawebgis.esri.com/arcgis-components/?path=/docs/lumina-transition-from-stencil--docs#watching-for-property-changes */ | |||
if (changes.has("expanded")) { | |||
this.open = this.expanded; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is correct. expanded should set expanded, open should set open.
I think what needs to happen is that open and expanded each need a custom setter to set the other one when one is set.
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
Related Issue: #6473
Summary
Deprecate
open
/close
props in favor ofexpanded
/collapsed
.