summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/SearchBar.tsx
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-10-24 13:34:02 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-10-30 18:03:44 +0100
commitdb89a8d51de88ca08599fa331f6376ef477d15e8 (patch)
tree6f484297196d8cd377d090f69aff12d3c51ea5a4 /gui/src/renderer/components/SearchBar.tsx
parent754b15058eaf37dba76387f803e623a94698242f (diff)
downloadmullvadvpn-db89a8d51de88ca08599fa331f6376ef477d15e8.tar.xz
mullvadvpn-db89a8d51de88ca08599fa331f6376ef477d15e8.zip
Adjust codebase to breaking changes in styled components v6
Diffstat (limited to 'gui/src/renderer/components/SearchBar.tsx')
-rw-r--r--gui/src/renderer/components/SearchBar.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/gui/src/renderer/components/SearchBar.tsx b/gui/src/renderer/components/SearchBar.tsx
index fbe7d3573a..e21439fbbf 100644
--- a/gui/src/renderer/components/SearchBar.tsx
+++ b/gui/src/renderer/components/SearchBar.tsx
@@ -22,15 +22,15 @@ export const StyledSearchInput = styled.input.attrs({ type: 'text' })({
lineHeight: '24px',
color: colors.white60,
backgroundColor: colors.white10,
- '::placeholder': {
+ '&&::placeholder': {
color: colors.white60,
},
- ':focus': {
+ '&&:focus': {
color: colors.blue,
backgroundColor: colors.white,
- '::placeholder': {
- color: colors.blue40,
- },
+ },
+ '&&:focus::placeholder': {
+ color: colors.blue40,
},
});
@@ -49,20 +49,20 @@ export const StyledSearchIcon = styled(ImageView)({
top: '50%',
transform: 'translateY(-50%)',
left: '9px',
- [`${StyledSearchInput}:focus ~ &`]: {
+ [`${StyledSearchInput}:focus ~ &&`]: {
backgroundColor: colors.blue,
},
});
export const StyledClearIcon = styled(ImageView)({
- ':hover': {
+ '&&:hover': {
backgroundColor: colors.white60,
},
- [`${StyledSearchInput}:focus ~ ${StyledClearButton} &`]: {
+ [`${StyledSearchInput}:focus ~ ${StyledClearButton} &&`]: {
backgroundColor: colors.blue40,
- ':hover': {
- backgroundColor: colors.blue,
- },
+ },
+ [`${StyledSearchInput}:focus ~ ${StyledClearButton} &&:hover`]: {
+ backgroundColor: colors.blue,
},
});