-
Notifications
You must be signed in to change notification settings - Fork 6
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(vwc-surface): viv-510 iss-859 complex menu surface #863
Conversation
🚀 Latest successful build of the PR deployed here. 🚀 |
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.
Can u trigger opening the menu in the stories on load?
display: flex; | ||
justify-content: flex-end; | ||
|
||
::slotted(vwc-button) { |
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.
::slotted(vwc-button) { | |
::slotted(.vwc-button + .vwc-button) { |
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've tried several syntaxes, nothing worked to me...
@@ -0,0 +1,23 @@ | |||
.dropdown-content { | |||
padding: 24px; |
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 suggest defining a variable as we discussed for each of the sections
:host {
--vvd-dropdown-padding-inline: 24px;
--vvd-dropdown-body-padding-inline: var(--vvd-dropdown-padding-inline); // or 0 as default?
--vvd-dropdown-actions-padding-inline: var(--vvd-dropdown-padding-inline);
}
that way we have full control. what do you say?
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.
Implemented!
components/menu/src/vwc-menu.ts
Outdated
@@ -14,13 +16,21 @@ declare global { | |||
|
|||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | |||
// @ts-ignore | |||
MWCMenu.styles = [styleCoupling, mwcMenuStyle, vwcMenuStyle]; | |||
MWCMenuBase.styles = [mwcMenuStyle, vwcMenuStyle]; |
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.
styles were never applied to base classes. I believe we can finally set these in our own class peacefully since we extend the base class
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.
Good point... I'll see if it breaks anything and will move to our own.
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.
Looked okay to me in StoryBook, implemented.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
closes #859
This PR prides an
vwc-surface
component, which while being very similar to thevwc-menu
is especially targeted to present complex contents in a surfaced fashion.