Skip to content

Commit

Permalink
fix: prefix Pseudo-classes with an ampersand
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Dec 11, 2024
1 parent b33697c commit 59ab629
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BottomSheet/BottomSheet.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Sheet = styled(motion(ReachDialogContent)).withConfig({
shouldForwardProp: excludeStyledProps(...styleFns),
})<SheetProps>(
({ theme }) => ({
":focus": {
"&:focus": {
outline: "none",
},
inset: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/Input/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const InputWrapper = styled(Box)<BoxProps>(({ theme }) => ({
display: "flex",
flexGrow: 1,

":focus-within": {
"&:focus-within": {
svg: {
color: theme.colors.darkBlue,
},
Expand Down
2 changes: 1 addition & 1 deletion src/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const StyledReactModal = styled(ReactModal)(
maxWidth,
}),
({ theme }): CSSObject => ({
":focus": {
"&:focus": {
outline: "none",
},
display: "flex",
Expand Down
4 changes: 2 additions & 2 deletions src/NavBarSearch/NavBarSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const NavBarSearch = styled(BaseNavBarSearch)(({ theme }) => ({
border: "solid 1px transparent",
borderRadius: theme.radii.medium,
minWidth: theme.space.x5,
":focus": {
"&:focus": {
color: theme.colors.white,
background: darken(0.1, theme.colors.blue),
border: `solid 1px ${theme.colors.lightBlue}`,
Expand All @@ -54,7 +54,7 @@ const NavBarSearch = styled(BaseNavBarSearch)(({ theme }) => ({
background: "transparent",
border: "solid 1px transparent",
borderRadius: theme.radii.medium,
":focus": {
"&:focus": {
background: theme.colors.white,
border: "solid 1px transparent",
boxShadow: "none",
Expand Down

0 comments on commit 59ab629

Please sign in to comment.