Skip to content

Commit b51f129

Browse files
committed
introduce new class to remove svg width
1 parent 85c7d24 commit b51f129

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

assets-src/styles/sass/30-base/_icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ svg {
66
fill: currentColor;
77
height: auto;
88

9-
&:not(.svg-inline--fa, .icon--submenu) {
9+
&:not(.svg-inline--fa, .icon--no-width) {
1010
width: 100%;
1111
}
1212
}

public/dist/assets/styles/core.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ svg {
15221522
fill: currentColor;
15231523
height: auto;
15241524
}
1525-
svg:not(.svg-inline--fa, .icon--submenu) {
1525+
svg:not(.svg-inline--fa, .icon--no-width) {
15261526
width: 100%;
15271527
}
15281528

public/dist/assets/styles/core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/components/columns_with_icons.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% if card.icon is defined and card.icon %}
3131
{{ card.icon.inline|markup_attrs({
3232
'aria-hidden': 'true',
33-
'class': 'icon icon--larger',
33+
'class': 'icon icon--larger icon--no-width',
3434
'focusable': 'false',
3535
'height': '1em',
3636
'width': '1em'
@@ -41,4 +41,4 @@
4141
{% endfor %}
4242
</ul>
4343
{% endif %}
44-
</div>
44+
</div>

templates/components/styles/global_nav.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ul class="clean-list" data-component="nav-double-intro">
1212
{% for navItem in navigation %}
1313
<li class="top-nav-item has-children">
14-
<a href="{{ navItem.titleLink }}" class="nav-link">{{ navItem.title }} <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height="16" width="16" class="icon icon--submenu" focusable="false" aria-hidden="true" fill="currentColor" style="visibility: hidden"><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg></a>
14+
<a href="{{ navItem.titleLink }}" class="nav-link">{{ navItem.title }} <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height="16" width="16" class="icon icon--submenu icon--no-width" focusable="false" aria-hidden="true" fill="currentColor" style="visibility: hidden"><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"/></svg></a>
1515
<div class="nav__submenu" data-nav="submenu" style="display: none;">
1616
<div class="l-center">
1717
<div class="nav__submenu__intro">
@@ -30,7 +30,7 @@
3030
{% for child in navItem.children %}
3131
<li {{ child.startNewColumn is defined and child.startNewColumn ? 'class="break-after"' : '' }}>
3232
<a class="with-icon--before with-icon--larger" href="{{ child.url }}">
33-
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 320 512" class="icon icon--larger" focusable="false" aria-hidden="true" width="1em" height="1em">
33+
<svg xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 320 512" class="icon icon--larger icon--no-width" focusable="false" aria-hidden="true" width="1em" height="1em">
3434
<path class="chevron-left" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"/>
3535
<path class="chevron-right" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"/>
3636
</svg>

0 commit comments

Comments
 (0)