From 7cda7c7e729c4c07658cd9bad90ea2f6fa5481b8 Mon Sep 17 00:00:00 2001 From: Ed Wilde Date: Fri, 13 Oct 2023 09:10:19 +1300 Subject: [PATCH 1/3] Update Storybook logo to the 5.1 OSS logo --- .storybook/theme/SilverstripeTheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/theme/SilverstripeTheme.js b/.storybook/theme/SilverstripeTheme.js index 0e350d75d..9588235d4 100644 --- a/.storybook/theme/SilverstripeTheme.js +++ b/.storybook/theme/SilverstripeTheme.js @@ -3,7 +3,7 @@ import { create } from '@storybook/theming/create'; const SilverstripeTheme = create({ base: 'light', brandTitle: 'Silverstripe CMS - Storybook', - brandImage: 'https://www.silverstripe.com/_resources/themes/app/dist/images/logos/silverstripe-logo.svg', + brandImage: 'https://www.silverstripe.org/themes/ssv3/img/global-logo-open-source.svg', brandTarget: '_self', // Main colors From 050b8b93c89c40b1d5a3dc5a58b585bb961bf239 Mon Sep 17 00:00:00 2001 From: Ed Wilde Date: Fri, 27 Oct 2023 17:19:32 +1300 Subject: [PATCH 2/3] Add the new CMS logo locally --- .storybook/theme/SilverstripeTheme.js | 5 +++-- .storybook/theme/images/logo.svg | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .storybook/theme/images/logo.svg diff --git a/.storybook/theme/SilverstripeTheme.js b/.storybook/theme/SilverstripeTheme.js index 9588235d4..5cbdd08d9 100644 --- a/.storybook/theme/SilverstripeTheme.js +++ b/.storybook/theme/SilverstripeTheme.js @@ -1,16 +1,17 @@ import { create } from '@storybook/theming/create'; +import logo from './images/logo.svg'; const SilverstripeTheme = create({ base: 'light', brandTitle: 'Silverstripe CMS - Storybook', - brandImage: 'https://www.silverstripe.org/themes/ssv3/img/global-logo-open-source.svg', + brandImage: logo, brandTarget: '_self', // Main colors colorPrimary: '#005be0', // Temporary colorSecondary: '#005be0', - + // Toolbar default and active colors barTextColor: '#9E9E9E', barSelectedColor: '#005be0', diff --git a/.storybook/theme/images/logo.svg b/.storybook/theme/images/logo.svg new file mode 100644 index 000000000..0637f72f5 --- /dev/null +++ b/.storybook/theme/images/logo.svg @@ -0,0 +1 @@ + From 3c969733bb3154a09e45f1905a6c8fe6bf12ba87 Mon Sep 17 00:00:00 2001 From: Ed Wilde Date: Fri, 27 Oct 2023 17:20:04 +1300 Subject: [PATCH 3/3] Define a minimum width for the logo Otherwise it looks a little tiny... --- .storybook/manager-head.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .storybook/manager-head.html diff --git a/.storybook/manager-head.html b/.storybook/manager-head.html new file mode 100644 index 000000000..f080ce9a7 --- /dev/null +++ b/.storybook/manager-head.html @@ -0,0 +1,12 @@ + +