equinor / webviz

Mozilla Public License 2.0
6 stars 7 forks source link

Fix incorrect handling color prop as string in Button-component #749

Closed jorgenherje closed 5 days ago

jorgenherje commented 1 week ago

The Button-component has optional prop named color: color?: "primary" | "danger" | "success" | string;

When color is given as a string, it is not handled correctly. Adjust s.t. a background color is set with wanted color string - e.g. named color, hex color etc.