Skip to content

Commit

Permalink
excludes RGB color from control options
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Nov 9, 2023
1 parent 19a2273 commit 6fc65d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stories/card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6fc65d2

Please sign in to comment.