-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/1.x/705 lgd icon doesnt use theme variable #706
base: 1.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,12 +35,16 @@ | |
{% set theme = theme|default('localgov_base') %} | ||
{% set icon_wrapper_element = icon_wrapper_element|default('div') %} | ||
|
||
{%- set icon_fullpath -%} | ||
{% if icon_path|first != '@' %}@{{ theme }}/{% endif %}{{ icon_path|default('includes/icons') }}/{{ icon_name }}.svg | ||
{%- endset -%} | ||
|
||
{% set attributes = create_attribute() | ||
.setAttribute('aria-hidden', decoration|default('true')) | ||
.addClass('lgd-icon') | ||
.addClass(icon_classes) | ||
%} | ||
|
||
<{{ icon_wrapper_element }}{{ attributes }}> | ||
{% include icon_path ~ '/' ~ icon_name ~ '.svg' %} | ||
{% include icon_fullpath %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's change this line to after we remove the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That will be nicer. I'll do that this afternoon. |
||
</{{ icon_wrapper_element }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove the
{% set ... %}
here then replace line 49 later with line 39 from here.