Skip to content

Commit

Permalink
feat(@dpc-sdp/ripple-contact): support for website links (#1289)
Browse files Browse the repository at this point in the history
Co-authored-by: David Featherston <david.featherstone@dpc.vic.gov.au>
  • Loading branch information
lambry and David Featherston committed Apr 18, 2023
1 parent 938dd54 commit 998166f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/components/Molecules/Contact/Contact.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export const Template = (args, { argTypes }) => ({
icon: 'instagram',
title: 'Name of Instagram account',
url: 'https://www.intagram.com'
},
{
icon: 'browser',
title: 'Name of website',
url: 'https://vic.gov.au'
}
]
}}
Expand Down
3 changes: 2 additions & 1 deletion packages/components/Molecules/Contact/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export default {
'instagram': '0.81',
'linkedin': '0.81',
'twitter': '0.81',
'youtube': '0.81'
'youtube': '0.81',
'browser': '0.67'
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-tide/lib/core/mapping-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
continue
} else {
const service = {
icon: s.field_paragraph_social_list,
icon: s.field_paragraph_social_list === 'website' ? 'browser' : s.field_paragraph_social_list,
title: s.field_paragraph_link.title,
url: s.field_paragraph_link.uri
}
Expand Down

0 comments on commit 998166f

Please sign in to comment.