remove visible borders
This commit is contained in:
parent
25fa777dd6
commit
6cc301dd35
1 changed files with 3 additions and 6 deletions
|
@ -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' }}>
|
||||||
|
|
Loading…
Reference in a new issue