Fix #4650: Differentiate between aliases and corrections in autocomplete.
Display a red wavy underline beneath misspelled tags in autocomplete. We use an inline image for the underline instead of the native `text-decoration: red wavy underline` property because the native underline is too big and ugly, and we have no way to adjust it. Making a nice-looking wavy underline in CSS is surprisingly difficult. This turned out to be the cleanest way.
This commit is contained in:
@@ -22,7 +22,14 @@
|
||||
color: var(--autocomplete-arrow-color);
|
||||
}
|
||||
|
||||
/* Display a red wavy underline beneath misspelled tags. */
|
||||
/* https://stackoverflow.com/a/28152272 */
|
||||
li[data-autocomplete-type="tag-autocorrect"] .autocomplete-antecedent {
|
||||
text-decoration: dotted underline;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
background: var(--autocomplete-tag-autocorrect-underline);
|
||||
background-repeat: repeat-x;
|
||||
background-position-y: 1.2em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user