Skip to content

Commit

Permalink
Improve legibility of account/hashtag autosuggest (mastodon#31361)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmstan authored Aug 10, 2024
1 parent 28411ac commit caf0164
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app/javascript/styles/mastodon-light/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -559,3 +559,9 @@ a.sparkline {
.report-dialog-modal__textarea {
background: darken($ui-base-color, 10%);
}

.autosuggest-account {
.display-name__account {
color: $dark-text-color;
}
}
13 changes: 10 additions & 3 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,17 @@ body > [data-popper-placement] {

&:hover,
&:focus,
&:active,
&:active {
background: var(--dropdown-border-color);

.autosuggest-account .display-name__account {
color: inherit;
}
}

&.selected {
background: $ui-highlight-color;
color: $primary-text-color;
color: $ui-button-color;

.autosuggest-account .display-name__account {
color: inherit;
Expand Down Expand Up @@ -465,7 +472,7 @@ body > [data-popper-placement] {
display: block;
line-height: 16px;
font-size: 12px;
color: $dark-text-color;
color: $ui-primary-color;
}
}

Expand Down

0 comments on commit caf0164

Please sign in to comment.