Skip to content

Commit

Permalink
Adjust styling of readonly elements
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Mar 3, 2022
1 parent a942233 commit c9f5be9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="date"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand Down
2 changes: 1 addition & 1 deletion 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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="datetime"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand Down
2 changes: 1 addition & 1 deletion view/email.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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% 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 Down
2 changes: 1 addition & 1 deletion view/numberinput.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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% 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 Down
2 changes: 1 addition & 1 deletion 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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="textarea form-input{% if is_readonly%} has-background-grey-lighter{% 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 Down
2 changes: 1 addition & 1 deletion view/textinput.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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% 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 Down
2 changes: 1 addition & 1 deletion 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-light{% endif %} {{ errors is not empty ? 'is-danger' }}"
class="input form-input{% if is_readonly%} has-background-grey-lighter{% endif %} {{ errors is not empty ? 'is-danger' }}"
data-calendar-type="time"
{% if is_readonly%}readonly{% endif %}
{% if placeholder is not empty -%}
Expand Down

0 comments on commit c9f5be9

Please sign in to comment.