Skip to content

Commit

Permalink
Fix label color
Browse files Browse the repository at this point in the history
  • Loading branch information
djibe committed Nov 2, 2020
1 parent 36bbbcc commit 7d8e609
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion assets/scss/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ th {
label {
@include typography-caption;

color: $textfield-hint-color;
color: $textfield-caption-color;
display: inline-block;
user-select: none;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/bootstrap/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@

[class~='textfield-box'] &,
[class~='textfield-box'] ~ & {
padding-left: $textfield-box-padding-x;
padding: 0 $textfield-box-padding-x;
}
}

Expand Down
26 changes: 13 additions & 13 deletions docs/4.5/material/text-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ However limited to inputs placed in Bootstrap's `form-group` or `form-ripple` co
<label for="demo1">Floating label</label>
<input aria-describedby="demo1help" class="form-control" id="demo1" placeholder="Optional placeholder" type="text">
</div>
<small id="demo1help" class="form-text text-muted">Helper message placed outside <code>.floating-label</code>.</small>
<small id="demo1help" class="form-text">Helper message placed outside <code>.floating-label</code>.</small>
</div>
{% endcapture %}
{% include example.html content=example %}
Expand All @@ -65,7 +65,7 @@ Conditions for a good implementation
<div class="form-group form-ripple-text">
<label for="exampleInput1">Default form control</label>
<input aria-describedby="exampleInput1Help" class="form-control" id="exampleInput1" placeholder="Placeholder" type="text">
<small id="exampleInput1Help" class="form-text text-muted">Some help text.</small>
<small id="exampleInput1Help" class="form-text">Some help text.</small>
</div>
<div class="form-group form-ripple">
<label for="exampleInput2">Date and time</label>
Expand Down Expand Up @@ -169,21 +169,21 @@ If you use a helper text : either place it outside of the `floating-label` conta
<label for="exampleFloatingLabel1">Floating label</label>
<input aria-describedby="exampleFloatingLabel1Help" class="form-control" id="exampleFloatingLabel1" placeholder="Optional placeholder" type="text">
</div>
<small id="exampleFloatingLabel1Help" class="form-text text-muted">Helper text placed outside <code>.floating-label</code>.</small>
<small id="exampleFloatingLabel1Help" class="form-text">Helper text placed outside <code>.floating-label</code>.</small>
</div>
<div class="form-group">
<div class="floating-label form-ripple-text">
<label for="exampleFloatingLabelbis1">Floating label</label>
<input aria-describedby="exampleFloatingLabelbis1Help" class="form-control" id="exampleFloatingLabelbis1" placeholder="Optional placeholder" type="text">
<small id="exampleFloatingLabelbis1Help" class="form-text text-muted">Helper text placed inside <code>.floating-label</code> with <code>form-ripple-text</code>.</small>
<small id="exampleFloatingLabelbis1Help" class="form-text">Helper text placed inside <code>.floating-label</code> with <code>form-ripple-text</code>.</small>
</div>
</div>
<div class="form-group">
<div class="floating-label">
<label for="exampleFloatingLabel2">Date and time</label>
<input aria-describedby="exampleFloatingLabel2Help" class="form-control" id="exampleFloatingLabel2" placeholder="Date and time" type="datetime-local">
</div>
<small id="exampleFloatingLabel2Help" class="form-text text-muted">Help text placed outside <code>.floating-label</code>.</small>
<small id="exampleFloatingLabel2Help" class="form-text">Help text placed outside <code>.floating-label</code>.</small>
</div>
<div class="form-group">
<div class="floating-label">
Expand Down Expand Up @@ -225,7 +225,7 @@ Change sizes using `.floating-label-lg` and `.floating-label-sm`.
<div class="floating-label floating-label-lg form-ripple-text">
<label for="exampleFloatingLabel6">Large</label>
<input aria-describedby="exampleFloatingLabel6Help" class="form-control" id="exampleFloatingLabel6" placeholder="Optional placeholder" type="text">
<small id="exampleFloatingLabel6Help" class="form-text text-muted">Help text placed inside <code>.floating-label</code>.</small>
<small id="exampleFloatingLabel6Help" class="form-text">Help text placed inside <code>.floating-label</code>.</small>
</div>
</div>
<div class="form-group">
Expand All @@ -239,7 +239,7 @@ Change sizes using `.floating-label-lg` and `.floating-label-sm`.
<label for="exampleFloatingLabel8">Small</label>
<input aria-describedby="exampleFloatingLabel8Help" class="form-control" id="exampleFloatingLabel8" placeholder="Optional placeholder" type="text">
</div>
<small id="exampleFloatingLabel8Help" class="form-text text-muted">Help text placed outside <code>.floating-label</code>.</small>
<small id="exampleFloatingLabel8Help" class="form-text">Help text placed outside <code>.floating-label</code>.</small>
</div>
{% endcapture %}
{% include example.html content=example %}
Expand Down Expand Up @@ -292,7 +292,7 @@ As for floating labels, if you use a helper text : either place it outside of th
<div class="textfield-box form-ripple-text">
<label class="mb-2" for="exampleTextfieldBox1">Text field box</label>
<input aria-describedby="exampleTextfieldBox1Help" class="form-control" id="exampleTextfieldBox1" placeholder="Placeholder" type="text">
<small id="exampleTextfieldBox1Help" class="form-text text-muted">Helper text placed inside <code>.textfield-box</code>.</small>
<small id="exampleTextfieldBox1Help" class="form-text">Helper text placed inside <code>.textfield-box</code>.</small>
</div>
</div>
<div class="form-group">
Expand All @@ -304,7 +304,7 @@ As for floating labels, if you use a helper text : either place it outside of th
<option>3</option>
</select>
</div>
<small id="exampleTextfieldBox2Help" class="form-text text-muted">Help text placed outside <code>.textfield-box</code>.</small>
<small id="exampleTextfieldBox2Help" class="form-text">Help text placed outside <code>.textfield-box</code>.</small>
</div>
<div class="form-group">
<div class="textfield-box">
Expand Down Expand Up @@ -370,7 +370,7 @@ Change sizes using `.textfield-box-lg` and `.textfield-box-sm`.
<div class="textfield-box textfield-box-lg form-ripple-text">
<label class="mb-2" for="exampleTextfieldBox9">Large</label>
<input aria-describedby="exampleTextfieldBox9Help" class="form-control" id="exampleTextfieldBox9" placeholder="Large" type="text">
<small id="exampleTextfieldBox9Help" class="form-text text-muted">Help text placed inside <code>.textfield-box</code>.</small>
<small id="exampleTextfieldBox9Help" class="form-text">Help text placed inside <code>.textfield-box</code>.</small>
</div>
</div>
<div class="form-group">
Expand All @@ -384,7 +384,7 @@ Change sizes using `.textfield-box-lg` and `.textfield-box-sm`.
<div class="textfield-box textfield-box-sm">
<input aria-describedby="exampleTextfieldBox11Help" class="form-control" id="exampleTextfieldBox11" placeholder="Small" type="text">
</div>
<small id="exampleTextfieldBox11Help" class="form-text text-muted">Help text placed outside <code>.textfield-box</code>.</small>
<small id="exampleTextfieldBox11Help" class="form-text">Help text placed outside <code>.textfield-box</code>.</small>
</div>
{% endcapture %}
{% include example.html content=example %}
Expand Down Expand Up @@ -444,7 +444,7 @@ Sizes can also be set by adding `.floating-label-lg/sm` classes.
<div class="floating-label floating-label-lg textfield-box">
<label for="exampleFloatingBox6">Large</label>
<input aria-describedby="exampleFloatingBox6Help" class="form-control" id="exampleFloatingBox6" placeholder="Large" type="text">
<small id="exampleFloatingBox6Help" class="form-text text-muted">Help text placed inside <code>.floating-label</code>.</small>
<small id="exampleFloatingBox6Help" class="form-text">Help text placed inside <code>.floating-label</code>.</small>
</div>
</div>
<div class="form-group">
Expand All @@ -458,7 +458,7 @@ Sizes can also be set by adding `.floating-label-lg/sm` classes.
<label for="exampleFloatingBox8">Small</label>
<input aria-describedby="exampleFloatingBox8Help" class="form-control" id="exampleFloatingBox8" placeholder="Small" type="text">
</div>
<small id="exampleFloatingBox8Help" class="form-text text-muted">Help text placed outside <code>.floating-label</code>.</small>
<small id="exampleFloatingBox8Help" class="form-text">Help text placed outside <code>.floating-label</code>.</small>
</div>
{% endcapture %}
{% include example.html content=example %}
Expand Down

0 comments on commit 7d8e609

Please sign in to comment.