Skip to content
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

[docs] Add synonyms for brand icons #17455

Merged
merged 2 commits into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/scripts/updateIconSynonyms.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function run() {
// remove the icon name strings from the tags
icon.tags = not(icon.tags, icon.name.replace('_'));
// Fix the 3 exceptions
icon.name = myDestRewriter({ base: `ic_${icon.name}` });
icon.name = myDestRewriter({ base: icon.name });

acc[icon.name] = icon.tags;
return acc;
Expand Down
14 changes: 12 additions & 2 deletions docs/src/pages/components/material-icons/synonyms.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const synonyms = {
AccountCircle: 'avatar person profile thumbnail user',
AccountTree: 'sitemap',
AcUnit: 'freeze snowflake',
Adb: 'android',
Adb: 'android brand logo',
Add: 'create item new plus',
AddAlarm: 'clock plus time',
AddAlert: 'announcement bell callout information notification plus reminder',
Expand Down Expand Up @@ -40,9 +40,10 @@ const synonyms = {
AllInbox: 'delivery email letter post send',
AllInclusive: 'infinite',
AllOut: 'arrows circle directional expand shape',
Android: 'character logo mascot operating system toy',
Android: 'brand character logo mascot operating system toy',
Announcement: 'alert balloon bubble chat comment exclamation message news speech',
Apartment: 'building',
Apple: 'brand logo',
Apps: 'grid homescreen icons',
ArrowBack: 'left',
ArrowBackIos: 'left',
Expand Down Expand Up @@ -254,6 +255,7 @@ const synonyms = {
ExposurePlus2: 'plus',
Extension: 'extended item jigsaw piece puzzle shape',
Face: 'avatar eyes human person profile thumbnail user',
FaceBook: 'brand logo social',
FastFood: 'burger drink',
FastForward: 'control music speed time video',
FastRewind: 'control music speed time video',
Expand Down Expand Up @@ -364,6 +366,7 @@ const synonyms = {
InsertInvitation: 'agenda calendar',
InsertLink: 'anchor',
InsertPhoto: 'image wallpaper',
Instagram: 'brand logo social',
InvertColors: 'droplet hue inverted liquid palette tone water',
InvertColorsOff: 'droplet hue inverted liquid opacity palette tone water',
KeyboardArrowDown: 'chevron open',
Expand All @@ -390,6 +393,7 @@ const synonyms = {
LineStyle: 'dash dotted editor rule spacing',
LineWeight: 'editor height spacing style thickness',
Link: 'anchor',
LinkedIn: 'brand logo social',
LinkOff: 'anchor',
List: 'editor file format index menu task todo',
ListAlt: 'box contained editor format lines reorder stacked task title todo',
Expand Down Expand Up @@ -536,6 +540,7 @@ const synonyms = {
PieChart: 'analytics graph',
PieChartOutlined: 'graph',
PinDrop: 'gps location',
Pinterest: 'brand logo social',
PlayArrow: 'controls music start video',
PlayCircleFilled: 'arrow controls music start video',
PlayCircleFilledWhite: 'start',
Expand Down Expand Up @@ -572,6 +577,7 @@ const synonyms = {
Receipt: 'bill credit invoice paper payment sale transaction',
RecentActors: 'cards carousel contacts human profile user',
RecordVoiceOver: 'human person profile recording sound speaking speech transcript user',
Reddit: 'brand logo social',
Redeem: 'certificate credit giftcard present',
Redo: 'arrow',
Remove: 'line minus subtract',
Expand Down Expand Up @@ -746,6 +752,7 @@ const synonyms = {
SystemUpdateAlt: 'arrow download',
TabletMac: 'apple',
TapAndPlay: 'nfc wifi',
Telegram: 'brand call chat logo messaging voice',
TextFormat: 'letter',
TextRotateUp: 'arrow field move',
TextRotateVertical: 'arrow field move verticle',
Expand Down Expand Up @@ -780,6 +787,7 @@ const synonyms = {
TurnedIn: 'bookmark item remember save submit',
TurnedInNot: 'bookmark item outline remember save submit',
Tv: 'television',
Twitter: 'brand logo social',
Unarchive: 'arrow',
Undo: 'arrow',
UnfoldLess: 'arrow',
Expand Down Expand Up @@ -829,6 +837,7 @@ const synonyms = {
Web: 'blocks browser internet screen website www',
WebAsset: 'browser download image internet screen video website www',
Weekend: 'chair couch seat',
WhatsApp: 'brand call chat logo messaging voice',
Whatshot: 'fire',
Widgets: 'blocks',
Wifi: 'network',
Expand All @@ -838,6 +847,7 @@ const synonyms = {
WorkOff: 'briefcase job suitcase',
WorkOutline: 'briefcase job suitcase',
WrapText: 'arrow',
YouTube: 'brand logo social video',
YoutubeSearchedFor: 'arrow backwards refresh restore reverse rotate',
ZoomIn: 'bigger glass grow magnifier magnifying plus scale size',
ZoomOut: 'glass magnifier magnifying minus negative scale size smaller',
Expand Down