]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add :empty to .custom-file-control selector (#22176)
authorTheriault <dustintheriault@gmail.com>
Sat, 18 Mar 2017 20:23:10 +0000 (14:23 -0600)
committerMark Otto <markd.otto@gmail.com>
Sat, 18 Mar 2017 20:23:10 +0000 (13:23 -0700)
<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>

scss/_custom-forms.scss

index da40d7c508f144ef70fcdff81447a6d5ef2ed511..d303c48d0b0b52407f41b0234b6863db527ca449 100644 (file)
   @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;
     }
   }