Skip to content

Commit

Permalink
feat(popupmixin): reset popover styles
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jul 3, 2024
1 parent 34263a1 commit 6030077
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions mixins/PopupMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,16 @@ export default function PopupMixin(Base) {
.css`
/* https://m3.material.io/components/dialogs/specs */
:host([popover]) {
margin: 0;
border: 0;
padding: 0;
}
:host(::backdrop) {
display: none;
}
:host {
--mdw-popup__expand-duration: var(--mdw-motion-expand-duration, 250ms);
--mdw-popup__simple-duration: var(--mdw-motion-simple-duration, 100ms);
Expand Down Expand Up @@ -541,7 +551,7 @@ export default function PopupMixin(Base) {
}
:host([open]) {
pointer-events: auto;
pointer-events: inherit;
opacity: 1;
Expand Down Expand Up @@ -577,7 +587,7 @@ export default function PopupMixin(Base) {
padding: inherit;
padding: 0;
pointer-events: auto;
pointer-events: inherit;
filter: inherit;
Expand Down Expand Up @@ -635,7 +645,7 @@ export default function PopupMixin(Base) {
flex: inherit;
padding: inherit;
pointer-events: auto;
pointer-events: inherit;
filter: inherit;
transform: inherit;
Expand Down

0 comments on commit 6030077

Please sign in to comment.