Skip to content

Commit

Permalink
prevent hover state of no results
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleshike committed Dec 28, 2023
1 parent 109aea7 commit 042a1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/RichTextEditor/TemplateVariable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
.RichTextEditor__TemplateVariables__Item:hover,
.RichTextEditor__TemplateVariables__Item:focus,
.RichTextEditor__TemplateVariables__Item--selected {
background-color: $synth-hover-state;
text-decoration: none;
&:not(.RichTextEditor__TemplateVariables__Item--no-results) {
background-color: $synth-hover-state;
text-decoration: none;
}
}
2 changes: 1 addition & 1 deletion src/RichTextEditor/TemplateVariable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const TemplateVariableList = forwardRef((props: TemplateVariableListProps
{item}
</button>
)) :
<div className="RichTextEditor__TemplateVariables__Item">No variables found</div>}
<div className="RichTextEditor__TemplateVariables__Item RichTextEditor__TemplateVariables__Item--no-results">No variables found</div>}
</div>
);
});
Expand Down

0 comments on commit 042a1a3

Please sign in to comment.