Skip to content

Commit 914c9a1

Browse files
ThatJoeMooreblakemorgan
authored andcommitted
Podcast social icon (#264)
* Add Podcast icon to social-media-links Fixes #254 . The current icon being used isn't the right color yet (it's supposed to be purple, but we don't have a specific shade yet), so it's navy for now. This can be fixed in the byuweb/shared-icons repository. * Build
1 parent 74e77b0 commit 914c9a1

19 files changed

+38
-17
lines changed

components/byu-social-media-links/byu-social-media-links-common.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@
5757
@mixin snapchat() {
5858
background-image: url('https://cdn.byu.edu/shared-icons/latest/social/obfuscated/sn.svg');
5959
}
60+
61+
@mixin podcast() {
62+
background-image: url('https://cdn.byu.edu/shared-icons/latest/social/obfuscated/po.svg');
63+
}

components/byu-social-media-links/byu-social-media-links-extras.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ byu-social-media-links:not(.byu-component-rendered) {
4444
> .google-plus, > [slot="google-plus"] {
4545
@include google-plus();
4646
}
47+
48+
> .podcast {
49+
@include podcast();
50+
}
4751
}

components/byu-social-media-links/byu-social-media-links.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const SOCIAL_NAMES = {
1313
'gplus': 'Google+',
1414
'linkedin': 'LinkedIn',
1515
'rss': 'RSS',
16-
'snapchat': 'Snapchat'
16+
'snapchat': 'Snapchat',
17+
'podcast': 'Podcast'
1718
};
1819

1920
const SOCIAL_IDS = Object.getOwnPropertyNames(SOCIAL_NAMES);

components/byu-social-media-links/byu-social-media-links.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
@include allSocialIcons();
88
}
99

10+
//These all have a [slot] selector for backwards-compatibility. New icons don't need it.
1011
::slotted(.facebook), ::slotted([slot="facebook"]) {
1112
@include facebook();
1213
}
@@ -45,4 +46,8 @@
4546
@include snapchat();
4647
}
4748

49+
::slotted(.podcast) {
50+
@include podcast();
51+
}
52+
4853
}

dist/2017-core-components.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/2017-core-components.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.

dist/byu-theme-components.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/byu-theme-components.css.map

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

dist/byu-theme-components.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.

dist/byu-theme-components.min.css.map

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

0 commit comments

Comments
 (0)