Skip to content

Commit

Permalink
Enhancement/3022/explore unnecessary conditionals label (#3108)
Browse files Browse the repository at this point in the history
* Changes in Documentation

* removed conditionals for for
  • Loading branch information
SriHV authored Mar 22, 2024
1 parent 03c736d commit 8b1683b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/label/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
{%- else -%}
<label
class="{% if params.inputType is not defined -%}ons-label{%- endif %}{{- ' ' + params.classes if params.classes else "" -}}{%- if params.description %} ons-label--with-description{%- endif %} {{- ' ons-label--placeholder' if params.accessiblePlaceholder else "" -}}"
for="{{ params.for }}"
{% if params.description %}aria-describedby="{{ descriptionID }}"{% endif %}
{% if params.for %} for="{{ params.for }}"{% endif %}
{% if params.id %} id="{{ params.id }}"{% endif %}
{% if params.attributes %}{% for attribute, value in (params.attributes.items() if params.attributes is mapping and params.attributes.items else params.attributes) %}{{ attribute }}{% if value %}="{{ value }}"{% endif %}{% endfor %}{% endif %}
>
Expand Down

0 comments on commit 8b1683b

Please sign in to comment.