Skip to content

Commit c71fd14

Browse files
committed
fix(dropzone): prefer background-color on parent instead of pseudo element
1 parent 030fdf4 commit c71fd14

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

components/dropzone/index.css

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ governing permissions and limitations under the License.
9292
}
9393

9494
.spectrum-DropZone {
95-
position: relative;
9695
box-sizing: border-box;
9796
inline-size: var(--mod-drop-zone-width, var(--spectrum-drop-zone-width));
9897
padding: calc(var(--mod-drop-zone-padding, var(--spectrum-drop-zone-padding)) - var(--mod-drop-zone-border-width, var(--spectrum-drop-zone-border-width)));
@@ -102,16 +101,7 @@ governing permissions and limitations under the License.
102101
border-radius: var(--mod-drop-zone-corner-radius, var(--spectrum-drop-zone-corner-radius));
103102
border-style: var(--mod-drop-zone-border-style, dashed);
104103
background-size: cover;
105-
106-
&::after {
107-
content: "";
108-
block-size: 100%;
109-
inline-size: 100%;
110-
position: absolute;
111-
inset-inline-start: 0;
112-
inset-block-start: 0;
113-
background-color: var(--mod-drop-zone-background-color, var(--spectrum-drop-zone-background-color));
114-
}
104+
background-color: var(--mod-drop-zone-background-color, var(--spectrum-drop-zone-background-color));
115105

116106
&.is-dragged {
117107
/* @deprecation --mod-drop-zone-border-style--dragged will be removed during the S2 migration; please update your code to --mod-drop-zone-border-style-dragged */

0 commit comments

Comments
 (0)