diff options
| author | Theriault <[email protected]> | 2017-03-18 14:23:10 -0600 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-03-18 13:23:10 -0700 |
| commit | 6f42daf747f094188478bc76b83ce998c2a87e19 (patch) | |
| tree | 5ee5cb065c8efe8d07d00326d9fc18c9d67ee76c | |
| parent | 860181212dd5111a90cfba75033e2f4b373c8d63 (diff) | |
| download | bootstrap-6f42daf747f094188478bc76b83ce998c2a87e19.tar.xz bootstrap-6f42daf747f094188478bc76b83ce998c2a87e19.zip | |
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>
| -rw-r--r-- | scss/_custom-forms.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index da40d7c50..d303c48d0 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; } } |
