diff --git a/stylesheets/_lightbox.scss b/stylesheets/_lightbox.scss index 30ea3de96..ea8dc95bd 100644 --- a/stylesheets/_lightbox.scss +++ b/stylesheets/_lightbox.scss @@ -9,6 +9,7 @@ } .iconButton { + // NOTE: Cannot move these to inline styles as hover breaks due to precedence: background: transparent; width: 50px; height: 50px; diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index 6e54707af..ad8c8f0cf 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -39,7 +39,7 @@ const styles = { display: 'flex', flexDirection: 'column', marginLeft: 10, - } as React.CSSProperties + } as React.CSSProperties, }; interface IconButtonProps { @@ -47,11 +47,7 @@ interface IconButtonProps { onClick?: () => void; } const IconButton = ({ onClick, type }: IconButtonProps) => ( - + ); export class Lightbox extends React.Component { @@ -70,7 +66,7 @@ export class Lightbox extends React.Component { return ( - {} + @@ -86,5 +82,5 @@ export class Lightbox extends React.Component { } this.props.close(); - } + }; }