From 8c05ebb54dceabc279ae6f05b48c32692a5d05c0 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Garcia Date: Thu, 5 Dec 2024 17:51:51 +0100 Subject: [PATCH] ui: change bluesky and mastodon icons * ref: https://github.com/cern-sis/issues-inspire/issues/619 --- ui/src/authors/components/AuthorBlueskyAction.tsx | 2 +- ui/src/common/assets/bluesky-filled.svg | 8 ++++++++ ui/src/common/assets/bluesky.svg | 13 +++++++------ ui/src/common/assets/mastodon.svg | 10 +++++++--- ui/src/home/components/NewsAndUpdates.tsx | 9 +++------ .../__snapshots__/NewsAndUpdates.test.jsx.snap | 1 - 6 files changed, 26 insertions(+), 17 deletions(-) create mode 100644 ui/src/common/assets/bluesky-filled.svg diff --git a/ui/src/authors/components/AuthorBlueskyAction.tsx b/ui/src/authors/components/AuthorBlueskyAction.tsx index a8b8c8bd6..945fab836 100644 --- a/ui/src/authors/components/AuthorBlueskyAction.tsx +++ b/ui/src/authors/components/AuthorBlueskyAction.tsx @@ -18,7 +18,7 @@ const AuthorBlueskyAction = ({ bluesky }: { bluesky: string }) => { > - + diff --git a/ui/src/common/assets/bluesky-filled.svg b/ui/src/common/assets/bluesky-filled.svg new file mode 100644 index 000000000..68a8595aa --- /dev/null +++ b/ui/src/common/assets/bluesky-filled.svg @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/ui/src/common/assets/bluesky.svg b/ui/src/common/assets/bluesky.svg index 14ff83efd..e26e2840e 100644 --- a/ui/src/common/assets/bluesky.svg +++ b/ui/src/common/assets/bluesky.svg @@ -1,6 +1,7 @@ - - - - - - + + + + \ No newline at end of file diff --git a/ui/src/common/assets/mastodon.svg b/ui/src/common/assets/mastodon.svg index e221f6dd7..013f26ca0 100644 --- a/ui/src/common/assets/mastodon.svg +++ b/ui/src/common/assets/mastodon.svg @@ -1,4 +1,8 @@ - - - + + + + \ No newline at end of file diff --git a/ui/src/home/components/NewsAndUpdates.tsx b/ui/src/home/components/NewsAndUpdates.tsx index f4ef880ec..e12532887 100644 --- a/ui/src/home/components/NewsAndUpdates.tsx +++ b/ui/src/home/components/NewsAndUpdates.tsx @@ -14,7 +14,7 @@ import { INSPIRE_TWITTER_ACCOUNT, } from '../../common/constants'; import LinkWithTargetBlank from '../../common/components/LinkWithTargetBlank'; -import { ReactComponent as blueskyLogo } from '../../common/assets/bluesky.svg'; +import { ReactComponent as blueskyFilledLogo } from '../../common/assets/bluesky-filled.svg'; interface Post { id: string; @@ -96,11 +96,8 @@ const NewsAndUpdates = () => { Follow us on • diff --git a/ui/src/home/components/__tests__/__snapshots__/NewsAndUpdates.test.jsx.snap b/ui/src/home/components/__tests__/__snapshots__/NewsAndUpdates.test.jsx.snap index 643eb4e1a..26c673dd9 100644 --- a/ui/src/home/components/__tests__/__snapshots__/NewsAndUpdates.test.jsx.snap +++ b/ui/src/home/components/__tests__/__snapshots__/NewsAndUpdates.test.jsx.snap @@ -55,7 +55,6 @@ exports[`NewsAndUpdates renders 1`] = ` } style={ Object { - "color": "#1285FC", "fontSize": "25px", } }