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.
The
size
prop of theButton
component used to only accept one class name. There are cases when we need a combination of a size and theblock
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: