aboutsummaryrefslogtreecommitdiff
path: root/scss/_custom-forms.scss
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2016-01-17 20:50:55 -0800
committerChris Rebert <[email protected]>2016-01-17 20:53:11 -0800
commit8b67d4c7620fabb46b68fee880081fce07a2ccbb (patch)
tree96908e336852dc75e6c2a6558ce726ec8b2f0aba /scss/_custom-forms.scss
parent27596f48f4c84f823a2b4cb6ff3e4fc55ced6344 (diff)
downloadbootstrap-8b67d4c7620fabb46b68fee880081fce07a2ccbb.tar.xz
bootstrap-8b67d4c7620fabb46b68fee880081fce07a2ccbb.zip
Make translation of custom file input text easier; fixes #18922
[skip sauce]
Diffstat (limited to 'scss/_custom-forms.scss')
-rw-r--r--scss/_custom-forms.scss13
1 files changed, 10 insertions, 3 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index e30bda861..d6bfa1f17 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -217,8 +217,10 @@
@include border-radius($custom-file-border-radius);
@include box-shadow($custom-file-box-shadow);
- &::after {
- content: $custom-file-placeholder;
+ @each $lang, $text in map-get($custom-file-text, placeholder) {
+ &:lang(#{$lang})::after {
+ content: $text;
+ }
}
&::before {
@@ -232,9 +234,14 @@
padding: $custom-file-padding-x $custom-file-padding-y;
line-height: $custom-file-line-height;
color: $custom-file-button-color;
- content: $custom-file-button-label;
background-color: $custom-file-button-bg;
border: $custom-file-border-width solid $custom-file-border-color;
@include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
}
+
+ @each $lang, $text in map-get($custom-file-text, button-label) {
+ &:lang(#{$lang})::before {
+ content: $text;
+ }
+ }
}