@ndlib/component-library 0.0.70 → 0.0.71

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.
@@ -58,8 +58,8 @@ export const Card = ({ size, displayDate, headline, image, layout, onClick, rais
58
58
  const isVertical = !layout || layout === CARD_LAYOUT.VERTICAL;
59
59
  const { isHovered, anchorElementProps } = useHover();
60
60
  const [activeBackground, setActiveBackground] = useState(isHovered ? COLOR.ND_SKY_BLUE : COLOR.BACKGROUND);
61
- const imageHeight = imageHeightProp || isVertical ? 'auto' : '100%';
62
- const imageWidth = imageWidthProp || isVertical ? '100%' : 'auto';
61
+ const imageHeight = imageHeightProp || (isVertical ? 'auto' : '100%');
62
+ const imageWidth = imageWidthProp || (isVertical ? '100%' : 'auto');
63
63
  useEffect(() => {
64
64
  setActiveBackground(isHovered ? COLOR.ND_SKY_BLUE : COLOR.BACKGROUND);
65
65
  }, [isHovered]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndlib/component-library",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [