From 6fc65d26edac4cf3e2975f24f3671952e4f9487f Mon Sep 17 00:00:00 2001 From: Jean-Marc Date: Tue, 7 Nov 2023 13:45:52 +0100 Subject: [PATCH] excludes RGB color from control options --- stories/card.stories.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stories/card.stories.tsx b/stories/card.stories.tsx index b9880193e8..566403b620 100644 --- a/stories/card.stories.tsx +++ b/stories/card.stories.tsx @@ -11,7 +11,8 @@ import { Text, Wrapper } from './common'; import { brand } from '../src/lib/style/theme'; import { action } from '@storybook/addon-actions'; -const colors = Object.keys(brand); +// RGB color in theme provoke an error, excludes from control options +const colors = Object.keys(brand).filter((color) => !/RGB/.test(color)); export default { title: 'Components/Card',