Skip to content

Commit 11fdd33

Browse files
committed
US206196 removed margin-top for slotted items
1 parent 452f969 commit 11fdd33

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

elements/pfe-modal/src/pfe-modal.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ $pfe-modal--breakpoint--medium: 640px;
2121
}
2222

2323
::slotted([slot="pfe-modal--header"]) {
24-
margin-top: 0;
24+
margin-top: 0 !important;
2525
width: 90%;
2626
}
2727

28-
::slotted(:not([slot]):first-child) {
29-
margin-top: 0;
30-
display: block;
31-
}
28+
// ::slotted(*) {
29+
// margin-top: 0;
30+
// display: block;
31+
// background-color: green;
32+
// }
3233

3334
.pfe-modal {
3435
&__wrapper {
@@ -66,6 +67,11 @@ $pfe-modal--breakpoint--medium: 640px;
6667
@media screen and (min-width: $pfe-modal--breakpoint--medium) {
6768
padding: calc(#{pfe-var(container-padding)} * 2) calc(#{pfe-var(container-padding)} * 6) calc(#{pfe-var(container-padding)} * 2) calc(#{pfe-var(container-padding)} * 2);
6869
}
70+
71+
// Remove margin-top on the first slotted element that is not the header.
72+
::slotted(*:nth-child(2)) {
73+
margin-top: 0 !important;
74+
}
6975
}
7076
}
7177

0 commit comments

Comments
 (0)