Skip to content

Commit

Permalink
Indicate that the text is clickable by showing underline. This is sim…
Browse files Browse the repository at this point in the history
…lar to the Google Search results.
  • Loading branch information
TomoyukiAota committed Dec 12, 2024
1 parent 95a9df0 commit 65c4ad1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@

.anchor-tag-like-text {
@include anchor-tag-like-text;
&:hover {
filter: brightness(50%); // To indicate that the text is clickable. Usually, changing the mouse cursor to "pointer" serves the purpose, but it's fixed to "pointer" due to .progress-bar-with-details.
}
}

.progress-bar-with-details {
Expand Down
6 changes: 5 additions & 1 deletion src/styles/_anchor-tag-like-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
@mixin anchor-tag-like-text {
color: -webkit-link;
cursor: pointer;
text-decoration: underline;
text-decoration: none;

&:hover {
text-decoration: underline; // To indicate that the text is clickable.
}

&:active {
color: -webkit-activelink;
Expand Down

0 comments on commit 65c4ad1

Please sign in to comment.