-
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
fix: make datepicker compatible with dialog #680
Conversation
🚀 Latest successful build of the PR deployed here. 🚀 |
No only outside of |
components/datepicker/.depcheckrc
Outdated
"lit-flatpickr", | ||
"@vonage/vvd-core", | ||
"@vonage/vwc-datepicker", | ||
"@vonage/vwc-textfield", | ||
"@vonage/vwc-dialog", | ||
"@open-wc/*" | ||
] |
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.
why are we ignoring dependencies anyway?
@@ -0,0 +1,798 @@ | |||
// copy paste from flatpicker/dist/flatpickr.css |
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.
is this the flatpicker library original css? if so, can we just import it to our style (vwc-datepicker.scss)?
https://sass-lang.com/documentation/at-rules/import#importing-css
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.
Yes it's the original css.
css imports don't appear to be working in our css module setup.
I read on the polymer slack channel that the mwc team had a build process which converts their .css files to .css.ts and wraps it in a css template literal export const style = css '...'
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.
that's exactly what we're doing
I changed the code to reflect what I suggested so that it will proxy the original css code
hope that's ok
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.
Oh yea nice that works. I tried @import
initially which wasn't working with the .css file
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Requirement for Virtual Receptionist app to use datepicker within dialog. figma
mwc-dialog adds the inert attribute to all elements outside of the modal scope. This prevents interaction.