Fix connected site styling (#15409)
parent
67a7483754
commit
753666d9c2
@ -1,16 +1,18 @@ |
||||
import React from 'react'; |
||||
import PropTypes from 'prop-types'; |
||||
import classnames from 'classnames'; |
||||
|
||||
export default function IconBorder({ children, size }) { |
||||
export default function IconBorder({ children, size, className }) { |
||||
const borderStyle = { height: `${size}px`, width: `${size}px` }; |
||||
return ( |
||||
<div className="icon-border" style={borderStyle}> |
||||
<div className={classnames('icon-border', className)} style={borderStyle}> |
||||
{children} |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
IconBorder.propTypes = { |
||||
className: PropTypes.string, |
||||
children: PropTypes.node.isRequired, |
||||
size: PropTypes.number.isRequired, |
||||
}; |
||||
|
Loading…
Reference in new issue