Skip to content

Commit 15ada21

Browse files
committed
chore(dropzone): add slotted css rule for p tags
1 parent eb0cbb7 commit 15ada21

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

2nd-gen/packages/swc/components/dropzone/dropzone.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
display: none;
8181
}
8282

83+
::slotted(p) {
84+
margin: 0;
85+
text-align: center;
86+
}
87+
8388
/* ─────────────────────────────────────
8489
Visually-hidden status region
8590
───────────────────────────────────── */

2nd-gen/packages/swc/components/dropzone/stories/dropzone.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export const States: Story = {
189189
aria-label="Filled drop zone"
190190
style="min-inline-size: 260px;"
191191
>
192-
<p style="margin: 0; text-align: center;">report-q4.pdf uploaded</p>
192+
<p>report-q4.pdf uploaded</p>
193193
</swc-dropzone>
194194
195195
<swc-dropzone
@@ -198,7 +198,7 @@ export const States: Story = {
198198
aria-label="Filled and dragged drop zone"
199199
style="min-inline-size: 260px;"
200200
>
201-
<p style="margin: 0; text-align: center;">Drop file to replace</p>
201+
<p>Drop file to replace</p>
202202
</swc-dropzone>
203203
`,
204204
parameters: { flexLayout: 'row-wrap' },

0 commit comments

Comments
 (0)