Skip to content

Commit

Permalink
Correct alignment of button icons
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty committed Apr 8, 2024
1 parent ec5d14e commit e5115ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simple Counter</title>
<title>Counter Demo</title>
</head>
<body>
<div id="root"></div>
Expand Down
7 changes: 2 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ main button[aria-disabled='true']:hover ~ .tooltip {
}
main button .icon {
font-size: 2rem;
line-height: 1;
line-height: 1.75rem;
padding-bottom: 0.25rem;
}

@media (prefers-color-scheme: light) {
Expand All @@ -97,10 +98,6 @@ main button .icon {
background-color: var(--bg-dark-disabled);
color: var(--text-light);
}
main button[aria-disabled='true']:focus-visible::after,
main button[aria-disabled='true']:hover::after {
color: var(--text-dark);
}
main .tooltip {
color: var(--text-dark);
}
Expand Down

0 comments on commit e5115ea

Please sign in to comment.