11import React , { memo , forwardRef , useCallback } from 'react'
2- import { css } from 'glamor'
32import PropTypes from 'prop-types'
43import { SearchIcon } from '../../icons'
54import { IconWrapper } from '../../icons/src/IconWrapper'
65import { Text } from '../../typography'
76import TableHeaderCell from './TableHeaderCell'
87
9- const invisibleInputClass = css ( {
10- border : 'none' ,
11- backgroundColor : 'transparent' ,
12- WebkitAppearance : 'none' ,
13- MozAppearance : 'none' ,
14- WebkitFontSmoothing : 'antialiased' ,
15-
16- '&:focus' : {
17- outline : 'none'
18- } ,
19-
20- '&::placeholder' : {
21- color : 'rgba(67, 90, 111, 0.7)'
22- }
23- } ) . toString ( )
24-
258const noop = ( ) => { }
269
10+ /**
11+ * This prop is non-standard, macOS specific and unsupported by ui-box. We probably don't need it,
12+ * but retaining it for backwards compatibility
13+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth
14+ */
15+ const style = {
16+ '-webkit-font-smoothing' : 'antialiased'
17+ }
18+
2719const SearchTableHeaderCell = memo (
2820 forwardRef ( function SearchTableHeaderCell ( props , ref ) {
2921 const {
@@ -46,7 +38,18 @@ const SearchTableHeaderCell = memo(
4638 is = "input"
4739 size = { 300 }
4840 flex = "1"
49- className = { invisibleInputClass }
41+ border = "none"
42+ backgroundColor = "transparent"
43+ appearance = "none"
44+ style = { style }
45+ selectors = { {
46+ '&:focus' : {
47+ outline : 'none'
48+ } ,
49+ '&::placeholder' : {
50+ color : 'rgba(67, 90, 111, 0.7)'
51+ }
52+ } }
5053 value = { value }
5154 onChange = { handleChange }
5255 autoFocus = { autoFocus }
0 commit comments