fix: repair placeholder selectors

required since upgrading styled-components
pull/3083/head
William Grant 1 year ago
parent 96f058511d
commit 51a36e6cb0

@ -19,13 +19,13 @@ export const SessionHeaderSearchInput = styled.input<{ darkMode: boolean }>`
position: relative; position: relative;
border-radius: '4px'; border-radius: '4px';
::placeholder { &::placeholder {
color: var(--search-bar-text-control-color); color: var(--search-bar-text-control-color);
} }
&:focus { &:focus {
border: solid 1px border: solid 1px
var(${props => (props.darkMode ? '--primary-color' : '--search-bar-text-user-color')}); ${props => (props.darkMode ? 'var(--primary-color)' : 'var(--search-bar-text-user-color)')};
color: var(--search-bar-text-user-color); color: var(--search-bar-text-user-color);
outline: none; outline: none;
} }

@ -27,7 +27,7 @@ const StyledInput = styled(motion.input)<{
padding: var(--margins-lg); padding: var(--margins-lg);
${props => props.centerText && 'text-align: center;'} ${props => props.centerText && 'text-align: center;'}
::placeholder { &::placeholder {
color: var(--input-text-placeholder-color); color: var(--input-text-placeholder-color);
${props => props.centerText && 'text-align: center;'} ${props => props.centerText && 'text-align: center;'}
} }
@ -68,14 +68,14 @@ const StyledTextAreaContainer = styled(motion.div)<{
${props => props.centerText && 'text-align: center;'} ${props => props.centerText && 'text-align: center;'}
:placeholder-shown { &:placeholder-shown {
font-family: ${props => (props.monospaced ? 'var(--font-mono)' : 'var(--font-default)')}; font-family: ${props => (props.monospaced ? 'var(--font-mono)' : 'var(--font-default)')};
font-size: 12px; font-size: 12px;
height: 48px; height: 48px;
margin: var(--margins-md) 0; margin: var(--margins-md) 0;
} }
::placeholder { &::placeholder {
color: var(--input-text-placeholder-color); color: var(--input-text-placeholder-color);
${props => props.centerText && 'text-align: center;'} ${props => props.centerText && 'text-align: center;'}
} }
@ -121,7 +121,7 @@ const StyledInputContainer = styled(Flex)<{ error: boolean; biggerText?: boolean
line-height: 18px; line-height: 18px;
textarea { textarea {
:placeholder-shown { &:placeholder-shown {
font-size: var(--font-size-md); font-size: var(--font-size-md);
height: 56px; height: 56px;
} }

Loading…
Cancel
Save