holidayextras / ui-toolkit

DEPRECATED - CSS & React components
http://tech.holidayextras.co.uk/ui-toolkit/
MIT License
14 stars 3 forks source link

BOOK-2517 Button component to accept multiple class names #159

Closed vbachevhx closed 7 years ago

vbachevhx commented 7 years ago

The size prop of the Button component used to only accept one class name. There are cases when we need a combination of a size and the block modifier.

With this change the component will accept 0 or more pre-defined, space-separated class names. In case of an invalid value the error will look like this:

Warning: Failed propType: Invalid prop size of value small smallish block supplied to exports, expected any of ["default", "small", "medium", "large", "extra-large", "block"]. Validation failed. Check the render method of CarparkTile.