Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,14 @@ a:not([href]):not([class]):hover {
#TableOfContents {
a {
color: $lightslategray;
padding: 0.25rem 0.5rem;
border-radius: 4px;
transition: background-color 0.2s ease;
Comment on lines +382 to +384
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To ensure the padding and background color are applied correctly and provide a consistent hit area, the anchor tags should be set to display: block. Additionally, the transition should include the color property to match the background transition. Finally, although the PR description mentions adding focus-visible styles, they are missing from the implementation; adding them here ensures accessibility for keyboard users.

      display: block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      transition: all 0.2s ease;

      &:focus-visible {
        color: $white;
        text-decoration: none;
        background-color: rgba($primary, 0.15);
      }


&:hover {
color: $white;
text-decoration: none;
background-color: rgba($primary, 0.15);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix can be kept simpler. Since the issue is only about hover text visibility adding background-color: rgba($primary, 0.15) in &:hover is enough. The changes in lines 382–384 seem unrelated to this issue.

}
}
}
Expand Down
Loading