Skip to content

Commit 8a1ee2f

Browse files
suprjiansu
authored andcommittedNov 7, 2019
Make JavaScript and TypeScript templates consistent (#7944)
1 parent 0c9fa8d commit 8a1ee2f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎packages/cra-template-typescript/template/src/App.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
}
44

55
.App-logo {
6-
animation: App-logo-spin infinite 20s linear;
76
height: 40vmin;
87
pointer-events: none;
98
}
109

10+
@media (prefers-reduced-motion: no-preference) {
11+
.App-logo {
12+
animation: App-logo-spin infinite 20s linear;
13+
}
14+
}
15+
1116
.App-header {
1217
background-color: #282c34;
1318
min-height: 100vh;

‎packages/cra-template-typescript/template/src/App.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { render } from '@testing-library/react';
33
import App from './App';
44

5-
test('renders welcome heading', () => {
5+
test('renders learn react link', () => {
66
const { getByText } = render(<App />);
77
const linkElement = getByText(/learn react/i);
88
expect(linkElement).toBeInTheDocument();

0 commit comments

Comments
 (0)