Skip to content

Commit a98d8d0

Browse files
authored
fix(fileuploader): reinstate @-moz-document for firefox-specific styles (#19305)
1 parent bcb4931 commit a98d8d0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

packages/styles/scss/components/file-uploader/_file-uploader.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,23 @@
189189
.#{$prefix}--file-filename-tooltip {
190190
inline-size: -webkit-fill-available;
191191
padding-inline-start: $spacing-05;
192-
@document url-prefix() {
192+
193+
/* This is for targeting styles specific to firefox */
194+
/* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
195+
/* stylelint-disable-next-line at-rule-no-vendor-prefix */
196+
@-moz-document url-prefix() {
193197
inline-size: -moz-available;
194198
}
195199
}
196200
}
197201

198202
.#{$prefix}--file-filename-tooltip {
199203
inline-size: -webkit-fill-available;
200-
@document url-prefix() {
204+
205+
/* This is for targeting styles specific to firefox */
206+
/* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
207+
/* stylelint-disable-next-line at-rule-no-vendor-prefix */
208+
@-moz-document url-prefix() {
201209
inline-size: -moz-available;
202210
}
203211
}
@@ -217,7 +225,10 @@
217225
text-overflow: ellipsis;
218226
white-space: nowrap;
219227

220-
@document url-prefix() {
228+
/* This is for targeting styles specific to firefox */
229+
/* https://sass-lang.com/documentation/breaking-changes/moz-document/ */
230+
/* stylelint-disable-next-line at-rule-no-vendor-prefix */
231+
@-moz-document url-prefix() {
221232
inline-size: -moz-available;
222233
}
223234
}

0 commit comments

Comments
 (0)