1
- import styled , { css } from 'styled-components'
1
+ import styled , { css } from 'styled-components'
2
2
import React from 'react'
3
- import { Tooltip , Box , Text } from '@sanity/ui'
3
+ import { Tooltip , Box , Text } from '@sanity/ui'
4
4
5
5
export const List = styled . ul `
6
6
padding: 0;
@@ -11,7 +11,7 @@ export const List = styled.ul`
11
11
12
12
${ props => {
13
13
if ( props . hasError ) {
14
- const { color } = props ?. theme ?. sanity || { }
14
+ const { color} = props ?. theme ?. sanity || { }
15
15
return css `
16
16
border-left: 2px solid ${ color . solid . critical . enabled . border } ;
17
17
padding-left: 15px;
@@ -24,7 +24,7 @@ export const List = styled.ul`
24
24
export const ListItem = styled . li `
25
25
display: inline-block;
26
26
margin-right: 10px;
27
- border-radius: ${ props => props . radius } ;
27
+ border-radius: 100% ;
28
28
box-sizing: border-box;
29
29
position: relative;
30
30
height: 38px;
@@ -101,7 +101,7 @@ export const Color = styled.input`
101
101
border-radius: ${ props => props . radius } ;
102
102
103
103
${ props => {
104
- const { color } = props ?. theme ?. sanity || { }
104
+ const { color} = props ?. theme ?. sanity || { }
105
105
return css `
106
106
box-shadow: 0px 0px 0px 2px ${ color . base . focusRing } ;
107
107
`
@@ -119,7 +119,7 @@ export const Color = styled.input`
119
119
` }
120
120
`
121
121
122
- export const ConditionalWrapper = ( { condition, wrapper, children } ) => {
122
+ export const ConditionalWrapper = ( { condition, wrapper, children} ) => {
123
123
if ( condition ) {
124
124
return wrapper ( children )
125
125
}
0 commit comments