equinor / webviz

Mozilla Public License 2.0
6 stars 9 forks source link

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

Closed jorgenherje closed 1 month ago

jorgenherje commented 1 month 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.