@dtdot/lego 2.0.0-5 → 2.0.0-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ const IconOuter = styled.span `
35
35
  color: ${(props) => getThemeVariantColours(props.variant, props.theme).contrastText};
36
36
  background-color: ${(props) => getThemeVariantColours(props.variant, props.theme).darker};
37
37
 
38
- height: ${(props) => getIconContainerSizePx(props.size).height};
38
+ height: ${(props) => props.height || getIconContainerSizePx(props.size).height};
39
39
  width: ${(props) => getIconContainerSizePx(props.size).width};
40
40
  `;
41
41
  const StyledButton = styled.button `
@@ -108,7 +108,7 @@ const Button = React.forwardRef(function Button(props, ref) {
108
108
  return (React.createElement(StyledButton, { ref: ref, width: width, height: height, alignSelf: alignSelf, marginTop: marginTop, variant: variant, size: size, type: type, onClick: onClick, "data-cy": dataCy || 'button' }, loading ? (React.createElement(SpinnerContainer, null,
109
109
  React.createElement(ButtonSpinner, { "data-cy": 'button-loading-spinner', variant: variant, size: size }))) : (React.createElement(ButtonInner, null,
110
110
  children && React.createElement(ButtonTextContainer, { size: size }, children),
111
- icon && (React.createElement(IconOuter, { variant: variant, size: size },
111
+ icon && (React.createElement(IconOuter, { variant: variant, size: size, height: height },
112
112
  React.createElement(FontAwesomeIcon, { icon: icon })))))));
113
113
  });
114
114
  export default Button;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtdot/lego",
3
- "version": "2.0.0-5",
3
+ "version": "2.0.0-6",
4
4
  "description": "Some reusable components for building my applications",
5
5
  "main": "build/index.js",
6
6
  "scripts": {