Skip to content

Commit

Permalink
style: Make whole sidebar link clickable
Browse files Browse the repository at this point in the history
Currently, the padding on the `<li>` element makes some of the highlighted area not a link that redirects you to a page, which is confusing when you click on the padding. By transferring the padding to the `<a>` element, the whole highlighted area is a clickable link.
  • Loading branch information
jonathan-richer authored and Jonathan Richer dit Lafleche committed Sep 23, 2024
1 parent f210ca3 commit 9650d88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wiki/public/scss/wiki.scss
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ body.dark {
display: flex;
align-items: center;
height: 26px;
padding: 5px 8px;
border-radius: 8px;
}
.sidebar-item-active {
Expand Down Expand Up @@ -343,7 +342,7 @@ body.dark {
margin: 0;
font-weight: 420;
width: 100%;
padding: 0;
padding: 5px 8px;

&:hover {
color: unset;
Expand Down

0 comments on commit 9650d88

Please sign in to comment.