Skip to content

Commit 8c3420a

Browse files
committed
fix: Color contrast ratio accessibility
Fixed Lighthouse "Background and foreground colors have a sufficient contrast ratio" by changing bg color of header area, linkbutton, and filter border and placeholder text. Lighthouse score 87 -> 89 Useful Resource: https://app.contrast-finder.org/
1 parent 33a8702 commit 8c3420a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.App {
22
/* height: 500px; */
3-
background-color: #007EE5;
3+
background-color: #1E685B;
44
text-align: center;
55
display: flex;
66
justify-content: center;

src/components/LinkButton/LinkButton.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
border-radius: 2px;
1010
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
1111

12-
background-color: #2ecc71;
12+
background-color: #CC2E88;
1313
color: #fff;
1414

1515
-webkit-transition: background-color 0.3s;

src/components/Navbar/Navbar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.topnav {
2-
background-color:#007EE5;
2+
background-color:#1E685B;
33
overflow: hidden;
44
text-align: right;
55
}

src/components/ProjectList/CardsContainer.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export default class CardsContainer extends React.Component {
128128
onChange={this.handleSelectChange}
129129
options={this.filterOptions}
130130
multi={true}
131-
placeholder='Filter'
131+
placeholder={<div className='filter-placeholder-text' style={{color: "#757575"}}>Filter</div>}
132+
aria-labelledby='Filter'
133+
style={{borderColor: "#DCDCDC"}}
132134
/>
133135
</div>
134136
</div>

src/components/ScrollUpButton/scroll-up.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)