Skip to content

Commit

Permalink
Lighter font for readonly inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Feb 28, 2022
1 parent c0fc728 commit a942233
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions view/date.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="date"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand All @@ -22,4 +22,4 @@
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/datetime.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="datetime"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand All @@ -22,4 +22,4 @@
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/email.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}"
{%- endif %} />
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/numberinput.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}"
{%- endif %} />
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/textarea.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
name="{{ id }}"
{{ cols is defined ? 'cols='~cols }}
{{ rows is defined ? 'rows='~rows }}
class="textarea form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="textarea form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}"
Expand All @@ -24,4 +24,4 @@
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/textinput.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
placeholder="{{ placeholder ~ (is_required and label is empty ? ' *') }}"
{%- endif %} />
</div>
{{ renderError(errors) }}
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions view/time.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
id="{{ id }}"
name="{{ id }}"
value="{{ value }}"
class="input form-input{% if is_readonly%} is-static has-text-grey{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} is-static has-text-grey-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="time"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand All @@ -22,4 +22,4 @@
</div>
{{ renderError(errors) }}
</div>
</div>
</div>

0 comments on commit a942233

Please sign in to comment.