Skip to content

Commit 438bdd1

Browse files
authored
Update styles.css
1 parent 096f4d2 commit 438bdd1

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

styles.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,26 @@ section#tools div {
2424
background: #f9f9f9;
2525
}
2626

27+
/* Update button styles to meet WCAG 2 AA standards */
2728
button {
2829
margin-top: 0.5rem;
2930
padding: 0.5rem 1rem;
30-
background: #007bff;
31-
color: #fff;
31+
background: #0056b3; /* Darker blue for better contrast */
32+
color: #ffffff; /* White text for high contrast */
3233
border: none;
3334
border-radius: 3px;
3435
cursor: pointer;
3536
transition: background 0.3s ease;
3637
}
3738

3839
button:hover {
39-
background: #0056b3;
40+
background: #003a80; /* Even darker blue for hover state */
41+
}
42+
43+
/* Ensure focus states are accessible */
44+
button:focus {
45+
outline: 2px solid #ffffff;
46+
outline-offset: 2px;
4047
}
4148

4249
#tools div:hover {

0 commit comments

Comments
 (0)