Icon Block Frame

No notes defined.

<span class="sds-iconBlock" aria-hidden="true">

    <span class="sds-iconBlock__icon sds-icon sds-"></span>

</span>
<span
	class="{{ namespace }}iconBlock{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}"
	aria-hidden="true">

	{% if progress is defined and progress is not none %}
		{% set progressPercent = progress | float %}
		{% if progressPercent < 0 %}{% set progressPercent = 0 %}{% endif %}
		{% if progressPercent > 100 %}{% set progressPercent = 100 %}{% endif %}
		<span class="{{ namespace }}iconBlock__progress">
			<svg width="100%" height="100%" viewBox="0 0 100 100"
			     xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
			  	<path
					class="{{ namespace }}iconBlock__progressTrack"
					d="M50 1 H99 V99 H1 V1 H50 Z"
				    fill="red"
				    stroke-width="2"
				/>
				<path
					  d="M50 1 H99 V99 H1 V1 H50 Z"
					  fill="none"
					  stroke-width="2"
					  stroke-dasharray="{{ 392 * progressPercent / 100 }} 392"
					  stroke-dashoffset="0"
				  />
			</svg>
		</span>
	{% endif %}

	{% if inlineSvg %}
		<span class="{{ namespace }}iconBlock__icon {{ namespace }}brandIconWrapper">
			{{ inlineSvg | safe }}
		</span>

	{% else %}
		{% if text %}
			<span class="{{ namespace }}iconBlock__text">{{ text }}</span>
	{% else %}
			<span class="{{ namespace }}iconBlock__icon {{ namespace }}icon {{ namespace }}{{ icon }}"></span>
		{% endif %}
	{% endif %}
</span>