Skip to content

Commit 680b47b

Browse files
arthurdennerCompuIves
authored andcommitted
fix(tests): apply correct opacity to sync icon when watching tests (codesandbox#3033)
1 parent be9da5d commit 680b47b

File tree

1 file changed

+4
-9
lines changed
  • packages/app/src/app/components/Preview/DevTools/Tests/TestSummary

1 file changed

+4
-9
lines changed

packages/app/src/app/components/Preview/DevTools/Tests/TestSummary/elements.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import styled, { css } from 'styled-components';
1+
import styled from 'styled-components';
22
import SyncIcon from 'react-icons/lib/go/sync';
33

44
export const Container = styled.div`
@@ -49,13 +49,9 @@ export const TestData = styled.div`
4949
`;
5050

5151
export const SyncIconStyled = styled(SyncIcon)<{ watching: boolean }>`
52-
opacity: 0.7;
53-
color: ${props => props.theme['button.hoverBackground']};
54-
${props =>
55-
props.watching &&
56-
css`
57-
opacity: 1;
58-
`}
52+
&& {
53+
opacity: ${props => (props.watching ? 1 : undefined)};
54+
}
5955
`;
6056

6157
export const Actions = styled.div`
@@ -69,7 +65,6 @@ export const Actions = styled.div`
6965
cursor: pointer;
7066
opacity: 0.8;
7167
color: ${props => props.theme['button.hoverBackground']};
72-
7368
margin-left: 0.5rem;
7469
7570
&:hover {

0 commit comments

Comments
 (0)