Skip to content

Commit

Permalink
Update ColorSelect.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
omesh-omg authored May 7, 2024
1 parent ff00593 commit edbc2a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/src/ui/src/components/ColorSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ import { Event, EventType, PropertyColorShade, Shade } from '@finos/a11y-theme-b
import { ColorShade } from '../components/ColorShade';
import './ColorSelect.css';

// baseColorHex is an optional property that allows the caller to specify a set of hex color values
// which this component will label as "base" if they appear in the selectable shades list. A "base" color is
// one of the actual colors that the user manually added to the color palette and not a calculated shade.
interface Props {
value: PropertyColorShade;
//this property is used to pass the set of baseColorHex values it is used to check if a shade color is base-color or not by using Set.has() function
baseColorHex?: Set<string>;
label?: string;
defaultValue?: string;
Expand Down

0 comments on commit edbc2a1

Please sign in to comment.