Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_wcms_gesso
Commits
3474621d
Commit
3474621d
authored
Jul 17, 2021
by
Martin Leblanc
Committed by
Kevin Paxman
Jul 29, 2021
Browse files
testing initial call to icon--button in view-interact
parent
e9d408d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/_patterns/04-components/icon/icon.twig
View file @
3474621d
<img
class=
"uw-icon
{{
icon_modifier_classes
}}
"
src=
"../../../source/images/icons/
{{
name
|
lower
}}
.svg"
/>
{%
if
pattern_lab
%}
<img
class=
"uw-icon
{{
icon_modifier_classes
}}
"
src=
"../../../source/images/icons/
{{
name
|
lower
}}
.svg"
/>
{%
else
%}
{%
set
front_path
=
'/profiles/uw_base_profile/modules/custom/uw_wcms_gesso/source/images/icons/'
%}
<img
class=
"uw-icon
{{
icon_modifier_classes
}}
"
src=
"
{{
front_path
}}{{
name
|
lower
}}
.svg"
/>
{%
endif
%}
source/_patterns/04-components/view/view-interact/view-interact.twig
View file @
3474621d
...
...
@@ -5,7 +5,8 @@
'url'
:
'#view-filters'
,
'btn_id'
:
'offcanvasbutton'
,
'text'
:
'Filters'
,
'name'
:
'filters'
,
'name'
:
'plus'
,
'is_hidden'
:
false
,
'modifier_classes'
:
'icon--button view-filters__open'
,
}
%}
{%
endif
%}
...
...
@@ -13,7 +14,8 @@
{%
include
'@components/icon/icon--button/icon--button.twig'
with
{
'url'
:
'#'
,
'text'
:
'Ical'
,
'name'
:
'calendar'
,
'name'
:
'plus'
,
'is_hidden'
:
false
,
'modifier_classes'
:
'icon--button'
,
}
%}
{%
endif
%}
...
...
@@ -21,7 +23,8 @@
{%
include
'@components/icon/icon--button/icon--button.twig'
with
{
'url'
:
'#'
,
'text'
:
'rss'
,
'name'
:
'rss'
,
'name'
:
'plus'
,
'is_hidden'
:
false
,
'modifier_classes'
:
'icon--button icon--rss'
,
}
%}
{%
endif
%}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment