From 6f42daf747f094188478bc76b83ce998c2a87e19 Mon Sep 17 00:00:00 2001
From: Theriault <dustintheriault@gmail.com>
Date: Sat, 18 Mar 2017 14:23:10 -0600
Subject: [PATCH] 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>
---
 scss/_custom-forms.scss | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index da40d7c508..d303c48d0b 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -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;
     }
   }
-- 
GitLab