Skip to content

Commit

Permalink
Merge pull request #2514 from codecrafters-io/fix-collapse-button
Browse files Browse the repository at this point in the history
Add z-index to leaderboard button styles for improved stacking context.
  • Loading branch information
rohitpaulk authored Jan 6, 2025
2 parents 382c0b6 + 1118910 commit d18e343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/course.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
<div class="sticky top-14">
{{#if this.leaderboardIsExpanded}}
<CoursePage::CollapseLeaderboardButton
class="opacity-0 group-hover:opacity-100 absolute top-6 -left-3.5"
class="opacity-0 group-hover:opacity-100 absolute top-6 -left-3.5 z-10"
{{on "click" this.handleCollapseLeaderboardButtonClick}}
data-test-collapse-leaderboard-button
/>
{{else}}
<CoursePage::ExpandLeaderboardButton
class="opacity-0 group-hover:opacity-100 absolute top-6 -left-3.5"
class="opacity-0 group-hover:opacity-100 absolute top-6 -left-3.5 z-10"
{{on "click" this.handleExpandLeaderboardButtonClick}}
data-test-expand-leaderboard-button
/>
Expand Down

0 comments on commit d18e343

Please sign in to comment.