From 7d8e6097bb213e62744752632b4974601d77c753 Mon Sep 17 00:00:00 2001 From: djibe Date: Mon, 2 Nov 2020 11:42:12 +0100 Subject: [PATCH] Fix label color --- CHANGELOG.md | 3 ++- assets/scss/base/_base.scss | 2 +- assets/scss/bootstrap/_forms.scss | 2 +- docs/4.5/material/text-fields.md | 26 +++++++++++++------------- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89f65da8b..9b2f4af85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,8 @@ - **NEW** Material themes for **flatpickr** (which will probably become main Picker) and **Datatables.net**. - Improved Dialogs/modals on small devices. - Improved documentation dependencies initialization. -- Update build dependencies. +- **Fixed** Form label color. +- Updated build dependencies. ## 4.5.2 - RC1 diff --git a/assets/scss/base/_base.scss b/assets/scss/base/_base.scss index 7afd38624..1b219271f 100644 --- a/assets/scss/base/_base.scss +++ b/assets/scss/base/_base.scss @@ -267,7 +267,7 @@ th { label { @include typography-caption; - color: $textfield-hint-color; + color: $textfield-caption-color; display: inline-block; user-select: none; } diff --git a/assets/scss/bootstrap/_forms.scss b/assets/scss/bootstrap/_forms.scss index a4fd1fe60..d187ea239 100644 --- a/assets/scss/bootstrap/_forms.scss +++ b/assets/scss/bootstrap/_forms.scss @@ -184,7 +184,7 @@ [class~='textfield-box'] &, [class~='textfield-box'] ~ & { - padding-left: $textfield-box-padding-x; + padding: 0 $textfield-box-padding-x; } } diff --git a/docs/4.5/material/text-fields.md b/docs/4.5/material/text-fields.md index caafeafba..cb1d31b88 100644 --- a/docs/4.5/material/text-fields.md +++ b/docs/4.5/material/text-fields.md @@ -42,7 +42,7 @@ However limited to inputs placed in Bootstrap's `form-group` or `form-ripple` co - Helper message placed outside .floating-label. + Helper message placed outside .floating-label. {% endcapture %} {% include example.html content=example %} @@ -65,7 +65,7 @@ Conditions for a good implementation
- Some help text. + Some help text.
@@ -169,13 +169,13 @@ If you use a helper text : either place it outside of the `floating-label` conta
- Helper text placed outside .floating-label. + Helper text placed outside .floating-label.
- Helper text placed inside .floating-label with form-ripple-text. + Helper text placed inside .floating-label with form-ripple-text.
@@ -183,7 +183,7 @@ If you use a helper text : either place it outside of the `floating-label` conta
- Help text placed outside .floating-label. + Help text placed outside .floating-label.
@@ -225,7 +225,7 @@ Change sizes using `.floating-label-lg` and `.floating-label-sm`.
- Help text placed inside .floating-label. + Help text placed inside .floating-label.
@@ -239,7 +239,7 @@ Change sizes using `.floating-label-lg` and `.floating-label-sm`.
- Help text placed outside .floating-label. + Help text placed outside .floating-label.
{% endcapture %} {% include example.html content=example %} @@ -292,7 +292,7 @@ As for floating labels, if you use a helper text : either place it outside of th
- Helper text placed inside .textfield-box. + Helper text placed inside .textfield-box.
@@ -304,7 +304,7 @@ As for floating labels, if you use a helper text : either place it outside of th
- Help text placed outside .textfield-box. + Help text placed outside .textfield-box.
@@ -370,7 +370,7 @@ Change sizes using `.textfield-box-lg` and `.textfield-box-sm`.
- Help text placed inside .textfield-box. + Help text placed inside .textfield-box.
@@ -384,7 +384,7 @@ Change sizes using `.textfield-box-lg` and `.textfield-box-sm`.
- Help text placed outside .textfield-box. + Help text placed outside .textfield-box.
{% endcapture %} {% include example.html content=example %} @@ -444,7 +444,7 @@ Sizes can also be set by adding `.floating-label-lg/sm` classes.
- Help text placed inside .floating-label. + Help text placed inside .floating-label.
@@ -458,7 +458,7 @@ Sizes can also be set by adding `.floating-label-lg/sm` classes.
- Help text placed outside .floating-label. + Help text placed outside .floating-label. {% endcapture %} {% include example.html content=example %}