Add :empty to .custom-file-control selector (#22176)

<label class="custom-file"><input type="file" class="custom-file-input" /><span class="custom-file-control"></span></label>
VS
<label class="custom-file"><input type="file" class="custom-file-input" /><span class="custom-file-control">test.txt</span></label>
This commit is contained in:
Theriault 2017-03-18 14:23:10 -06:00 committed by Mark Otto
parent 860181212d
commit 6f42daf747
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@
@include box-shadow($custom-file-box-shadow);
@each $lang, $text in map-get($custom-file-text, placeholder) {
&:lang(#{$lang})::after {
&:lang(#{$lang}):empty::after {
content: $text;
}
}