Skip to content

Commit

Permalink
Only add title attribute to input if prefixed or suffixed (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Feb 15, 2019
1 parent 59f6828 commit f834074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/input/_template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
type="{{ type }}"
id="{{ params.id }}"
class="input input--text input-type__input {{ params.classes }}{{ exclusiveClass }}"
title="{{ params.prefix.title }}{{ params.suffix.title }}"
{% if params.prefix or params.suffix %}title="{{ params.prefix.title }}{{ params.suffix.title }}"{% endif %}
{% if params.name !== undefined %}name="{{ params.name }}"{% endif %}
{% if params.value !== undefined %}value="{{ params.value }}"{% endif %}
{% if params.accept !== undefined %}accept="{{ params.accept }}"{% endif %}
Expand Down

0 comments on commit f834074

Please sign in to comment.