An error occurred while fetching the assigned milestone of the selected merge_request.
docs/components
forms.md +19 -0
scss
_custom-forms.scss +10 -3
_variables.scss +8 -2
+ 19
- 0
@@ -812,3 +812,22 @@ Here's how it works:
The [`:lang()` pseudo-class](https://developer.mozilla.org/en-US/docs/Web/CSS/:lang) is used to allow for easy translation of the "Browse" and "Choose file..." text into other languages. Simply override or add entries to the `$custom-file-text` SCSS variable with the relevant [language tag](https://en.wikipedia.org/wiki/IETF_language_tag) and localized strings. The English strings can be customized the same way. For example, here's how one might add a Spanish translation (Spanish's language code is `es`):
You'll need to set the language of your document (or subtree thereof) correctly in order for the correct text to be shown. This can be done using [the `lang` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) or the [`Content-Language` HTTP header](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.12), among other methods.
+ 10
- 3
@@ -217,8 +217,10 @@
@@ -232,9 +234,14 @@
+ 8
- 2
@@ -386,10 +386,16 @@ $custom-file-border-width: $border-width !default;