Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoseigor <joseigorcfm@gmail.com>2019-08-04 08:42:23 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-08-04 08:42:23 +0300
commit2be5f03bfc972df4f837826feecd33a07a83dc7f (patch)
tree3d0160a5f0e353c8566a8ac1df64b851a89ad8ef
parentb316235e63de14b959d842f9470acc2e97cbe82a (diff)
v5: Docs Utilities API updates (#29126)
Improvement to better understand how utilities class name are generated by the (_api.scss) base in the line of code below: `$property-class: if($property-class, $property-class, nth($properties, 1));` https://github.com/twbs/bootstrap/blob/fc02932946424e986a72bb7b47044eab815851cb/scss/mixins/_utilities.scss#L21
-rw-r--r--site/content/docs/4.3/utilities/api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/4.3/utilities/api.md b/site/content/docs/4.3/utilities/api.md
index bfad947440..470418bb88 100644
--- a/site/content/docs/4.3/utilities/api.md
+++ b/site/content/docs/4.3/utilities/api.md
@@ -13,7 +13,7 @@ The `$utilities` map contains all utilities and is later merged with your custom
- `property`: Name of the property, this can be a string or an array of strings (needed for eg. horizontal paddings or margins).
- `responsive` _(optional)_: Boolean indicating if responsive classes need to be generated. `false` by default.
-- `class` _(optional)_: Variable to change the class name if you don't want it to be the same as the property.
+- `class` _(optional)_: Variable to change the class name if you don't want it to be the same as the property. In case you don't provide the `class` key and `property` key is an array of strings, the class name will be the first element of the `property` array.
- `values`: This can be a list of values or a map if you don't want the class name to be the same as the value. If null is used as map key, it isn't rendered.
- `print` _(optional)_: Boolean indicating if print classes need to be generated. `false` by default.