Skip to content

Commit 0387681

Browse files
Accessibility for ReactRedux (#11571)
Accessibility for ReactRedux
1 parent 8d41acb commit 0387681

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/ReactRedux-CSharp/ClientApp/src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import Home from './components/Home';
55
import Counter from './components/Counter';
66
import FetchData from './components/FetchData';
77

8+
import './custom.css'
9+
810
export default () => (
911
<Layout>
10-
<Route exact path='/' component={Home}/>
12+
<Route exact path='/' component={Home} />
1113
<Route path='/counter' component={Counter} />
1214
<Route path='/fetch-data/:startDateIndex?' component={FetchData} />
1315
</Layout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Provide sufficient contrast against white background */
2+
a {
3+
color: #0366d6;
4+
}
5+
6+
code {
7+
color: #E01A76;
8+
}
9+
10+
.btn-primary {
11+
color: #fff;
12+
background-color: #1b6ec2;
13+
border-color: #1861ac;
14+
}

src/ProjectTemplates/test/template-baselines.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@
12351235
"ClientApp/src/store/WeatherForecasts.ts",
12361236
"ClientApp/src/App.tsx",
12371237
"ClientApp/src/App.test.tsx",
1238+
"ClientApp/src/custom.css",
12381239
"ClientApp/src/index.tsx",
12391240
"ClientApp/src/react-app-env.d.ts",
12401241
"ClientApp/src/registerServiceWorker.ts",

0 commit comments

Comments
 (0)