1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 21:40:48 +00:00

placeholder.svg: Partially revert the changes from c0e42cb. (#28216)

It broke the example include.
This commit is contained in:
XhmikosR 2019-02-09 13:10:29 +02:00 committed by GitHub
parent 1145365f6d
commit 6c7dcc6882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@
{%- endif -%}
{%- capture svg -%}
<svg xmlns="http://www.w3.org/2000/svg" width="{{ width }}" height="{{ height }}"{% if title != ' ' or text != ' ' %} aria-label="{% if title != ' ' %}{{ title }}{% if text != ' ' %}: {% endif %}{% endif %}{% if text != ' ' %}{{ text }}{% endif %}"{% endif %} class="bd-placeholder-img{% if class != '' %} {{ class }}{% endif %}" preserveAspectRatio="xMidYMid slice" role="img" focusable="false">
<svg class="bd-placeholder-img{% if class != '' %} {{ class }}{% endif %}" width="{{ width }}" height="{{ height }}" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img"{% if title != ' ' or text != ' ' %} aria-label="{% if title != ' ' %}{{ title }}{% if text != ' ' %}: {% endif %}{% endif %}{% if text != ' ' %}{{ text }}{% endif %}"{% endif %}>
{% if title != ' ' %}<title>{{ title }}</title>{% endif %}
<rect width="100%" height="100%" fill="{{ background }}"/>
{% if text != ' ' %}<text x="50%" y="50%" fill="{{ color }}" dy=".3em">{{ text }}</text>{% endif %}