Fixes icon placement within iconbutton when tooltip exists
This commit is contained in:
parent
9877c2ff97
commit
e8509e1f84
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,7 @@ import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
|
|||
import * as RadioGroup from '@radix-ui/react-radio-group'
|
||||
import * as Panel from './panel'
|
||||
import styled from 'styles'
|
||||
import Tooltip from './tooltip'
|
||||
|
||||
export const IconButton = styled('button', {
|
||||
height: '32px',
|
||||
|
@ -27,6 +28,13 @@ export const IconButton = styled('button', {
|
|||
opacity: '0.5',
|
||||
},
|
||||
|
||||
'& > span': {
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
},
|
||||
|
||||
variants: {
|
||||
bp: {
|
||||
mobile: {},
|
||||
|
|
Loading…
Reference in a new issue