Skip to content

Commit

Permalink
PLAY-427-Typeahead Kit Null Classes (#2135)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidaqg authored Oct 14, 2022
1 parent f819a1a commit 1464262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playbook/app/pb_kits/playbook/pb_text_input/_text_input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
const borderCss = `border_${borderToChange}_${borderToggle}`

const shouldShowAddOn = icon !== null
const addOnCss = shouldShowAddOn ? 'text_input_wrapper_add_on' : null
const addOnDarkModeCardCss = (shouldShowAddOn && dark) ? 'add-on-card-dark' : null
const addOnCss = shouldShowAddOn ? 'text_input_wrapper_add_on' : ""
const addOnDarkModeCardCss = (shouldShowAddOn && dark) ? 'add-on-card-dark' : ""
const css = classnames([
'pb_text_input_kit',
inline ? 'inline' : null,
error ? 'error' : null,
inline ? 'inline' : "",
error ? 'error' : "",
globalProps(props),
className,
])
Expand Down

0 comments on commit 1464262

Please # to comment.