-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor(cxl-ui): close drawer by default on mobile #27
base: master
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
super.updated(changedProperties); | ||
|
||
if (changedProperties.has('wide') && !this.wide) { | ||
this.asideOpened = 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.
Do we need to still keep track of what the state was on wide
, so it returns to such, when toggling between mobile / desktop.
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.
Updated to restore drawer state on media change
} | ||
} | ||
} | ||
|
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.
Are we able to do a much simpler ${this.wide && this.asideOpened}
conditional upgrade directly on <aside>
element template?
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 just tried that. Since wide
would always evaluate to false
on mobile the drawer doesn't open.
No description provided.