Skip to content

Commit

Permalink
Fixed Social Links Icons (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniyalfarman authored Jan 31, 2024
1 parent 187cf86 commit 214444a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lms/static/sass/features/_learner-profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
margin: 0 $baseline/2;

.social-links {
@include padding($baseline/4, 0, 0, $baseline/4);
@include padding($baseline/2, 0, 0, 0);

font-size: 2rem;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<div class="social-links">
<% for (var platform in socialLinks) { %>
<% if (socialLinks[platform]) { %>
<a rel="noopener" target="_blank" href= <%-socialLinks[platform]%>>
<span class="icon fa fa-<%-platform%>-square" data-platform=<%-platform%> aria-hidden="true"></span>
<a rel="noopener" target="_blank" href="<%- socialLinks[platform] %>">
<span class="<%-
platform === 'facebook' ? 'fab fa-facebook-f' :
platform === 'twitter' ? 'fab fa-x-twitter' :
platform === 'linkedin' ? 'fab fa-linkedin' :
'icon fa fa-' + platform + '-square' %>" data-platform="<%- platform %>" aria-hidden="true">
</span>
</a>
<% } %>
<% } %>
Expand Down

0 comments on commit 214444a

Please sign in to comment.