Skip to content

Commit d21c7ff

Browse files
authored
VACMS-17066 Staff Profiles web components (#2053)
* VACMS-17066 Staff Profiles web components * Fixing download links
1 parent dfddf62 commit d21c7ff

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

src/site/layouts/person_profile.drupal.liquid

+3-8
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
vads-u-margin--0
5959
vads-u-margin-bottom--0p5
6060
vads-u-font-weight--regular">
61-
<span class="vads-u-font-weight--bold">Email:</span> <a target="blank"
62-
href="mailto:{{ fieldEmailAddress }}">{{ fieldEmailAddress }}</a>
63-
</p>
61+
<span class="vads-u-font-weight--bold">Email:</span> <va-link type="email" href="mailto:{{ fieldEmailAddress }}" text="{{ fieldEmailAddress }}"></va-link></p>
6462
{% endif %}
6563
{% if fieldPhoneNumber %}
6664
<p class="
@@ -74,7 +72,6 @@
7472
</div>
7573
</div>
7674

77-
7875
{% if fieldCompleteBiographyCreate %}
7976
<div class="va-introtext vads-u-margin-bottom--2">
8077
<p class="va-introtext vads-u-margin-bottom--0">{{ fieldIntroText }}</p>
@@ -86,14 +83,12 @@
8683

8784
{% if fieldPhotoAllowHiresDownload and fieldMedia %}
8885
<div class="vads-u-align-content--flex-end va-c-margin-top--auto vads-u-margin-bottom--2" id="download-full-size-photo-link">
89-
<i class="va-c-social-icon fas fa-download" aria-hidden="true"></i> <a href="{{ fieldMedia.hiRes.image.derivative.url }}"
90-
download>Download full size photo</a>
86+
<va-link filetype="JPG" href="{{ fieldMedia.hiRes.image.derivative.url }}" download text="Download full size photo" />
9187
</div>
9288
{% endif %}
9389
{% if fieldCompleteBiography %}
9490
<div class="vads-u-align-content--flex-end va-c-margin-top--auto vads-u-margin-bottom--2">
95-
<i class="va-c-social-icon fas fa-download"></i> <a href="{{ fieldCompleteBiography.entity.url }}"
96-
download>Download full bio (PDF)</a>
91+
<va-link filetype="PDF" href="{{ fieldCompleteBiography.entity.url }}" download text="Download full bio" />
9792
</div>
9893
{% endif %}
9994
{% endif %}

src/site/teasers/bio.drupal.liquid

+7-9
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ Example data:
4949
{% endif %}
5050
<div>
5151
{% if node.entityUrl.path != empty and node.fieldIntroText and node.fieldBody.processed %}
52-
<a class="
53-
vads-u-font-family--serif
54-
vads-u-font-weight--bold
55-
vads-u-display--block
56-
vads-u-margin-bottom--1
57-
vads-u-font-size--lg"
58-
href="{{ node.entityUrl.path }}">{{ node.fieldNameFirst }} {{ node.fieldLastName }} {{ node.fieldSuffix }}</a>
52+
<va-link
53+
class="vads-u-display--block vads-u-margin-bottom--1 vads-u-font-family--serif vads-u-font-weight--bold vads-u-font-size--lg"
54+
href="{{ node.entityUrl.path }}"
55+
text="{{ node.fieldNameFirst }} {{ node.fieldLastName }} {{ node.fieldSuffix }}"
56+
></va-link>
5957
{% else %}
6058
<span class="
6159
vads-u-font-family--serif
@@ -103,8 +101,8 @@ Example data:
103101
vads-u-margin-bottom--0
104102
vads-u-font-size--base
105103
medium-screen:vads-u-font-size--lg">
106-
<b>Email:</b> <a target="blank"
107-
href="{{ node.fieldEmailAddress }}">{{ node.fieldEmailAddress }}</a>
104+
<b>Email:</b>
105+
<va-link type="email" href="mailto:{{ node.fieldEmailAddress }}" text="{{ node.fieldEmailAddress }}"></va-link>
108106
</p>
109107
{% endif %}
110108
</div>

0 commit comments

Comments
 (0)