File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,17 @@ import { padding, blockSizes } from '../common/system';
8
8
const StyledListItem = styled . li `
9
9
box-sizing: border-box;
10
10
11
- display: block;
11
+ display: flex;
12
+ align-items: center;
12
13
position: relative;
13
14
height: ${ props => blockSizes [ props . size ] } ;
14
15
width: ${ props => ( props . square ? blockSizes [ props . size ] : 'auto' ) } ;
15
16
padding: 0 ${ padding . sm } ;
16
17
17
18
white-space: nowrap;
18
- text-align: ${ props => ( props . square ? 'center' : 'left' ) } ;
19
+ justify-content: ${ props =>
20
+ props . square ? 'space-around' : 'space-between' } ;
21
+ text-align: center;
19
22
line-height: ${ props => blockSizes [ props . size ] } ;
20
23
color: ${ ( { theme } ) => theme . text } ;
21
24
pointer-events: ${ ( { isDisabled } ) => ( isDisabled ? 'none' : 'auto' ) } ;
You can’t perform that action at this time.
0 commit comments