diff --git a/src/App.jsx b/src/App.jsx index 943fd70..93e5409 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -3,7 +3,9 @@ import Turnstone from './lib' import { fruits, vegetables } from './data' const styles = { - highlightedItem: 'highlightedItem' + highlightedItem: 'highlightedItem', + input: 'input', + inputFocus: 'inputFocus' } const listbox1 = { diff --git a/src/lib/components/container.jsx b/src/lib/components/container.jsx index 948a40a..ce3959a 100644 --- a/src/lib/components/container.jsx +++ b/src/lib/components/container.jsx @@ -83,9 +83,12 @@ export default function Container(props) { const isExpanded = hasFocus && state.itemsLoaded const isErrorExpanded = !!props.errorMessage && state.itemsError const containerClassname = hasFocus ? 'containerFocus' : 'container' + const containerStyles = customStyles[containerClassname] || customStyles.container const defaultContainerStyles = customStyles[containerClassname] ? undef : defaultStyles[containerClassname] + const inputClassName = hasFocus ? 'inputFocus' : 'input' + const inputStyles = customStyles[inputClassName] || customStyles.input // Checks whether or not SWR data is to be treated as immutable const isImmutable = (() => { @@ -210,7 +213,7 @@ export default function Container(props) { return (