remove visible borders

This commit is contained in:
SleepingFox 2020-04-10 20:46:03 -04:00 committed by Sean Yesmunt
parent 25fa777dd6
commit 6cc301dd35

View file

@ -91,18 +91,17 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
const size = iconSize || (!label && !children) ? 18 : undefined; // Fall back to default const size = iconSize || (!label && !children) ? 18 : undefined; // Fall back to default
const content = ( const content = (
<span className="button__content" style={{ border: `1px solid green` }}> <span className="button__content">
{icon && <Icon icon={icon} iconColor={iconColor} size={size} />} {icon && <Icon icon={icon} iconColor={iconColor} size={iconSize} />}
{label && ( {label && (
<div style={{ position: 'relative', border: `1px solid red` }}> <div style={{ position: 'relative' }}>
<div <div
style={{ style={{
position: 'relative', position: 'relative',
left: '50%', left: '50%',
top: '50%', top: '50%',
transform: `translate(-50%, 0%)`, transform: `translate(-50%, 0%)`,
border: `1px solid white`,
}} }}
> >
<span style={{ visibility: 'hidden' }}> <span style={{ visibility: 'hidden' }}>
@ -113,8 +112,6 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
left: '50%', left: '50%',
top: '50%', top: '50%',
transform: `translate(-50%, -50%)`, transform: `translate(-50%, -50%)`,
visibility: 'visible',
border: `1px solid blue`,
}} }}
> >
<span className="button__label" style={{ visibility: 'visible' }}> <span className="button__label" style={{ visibility: 'visible' }}>