Skip to content

Commit

Permalink
Chatbot: question-matching on questions input #592
Browse files Browse the repository at this point in the history
  • Loading branch information
melissasamworth committed May 9, 2024
1 parent 662a277 commit 4ab71e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/Button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,4 @@
.button[disabled] {
opacity: 0.6;
cursor: inherit;
}
}
8 changes: 5 additions & 3 deletions app/components/Chatbot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ const QuestionInput = ({initial, onChange, onAsk}: QuestionInputProps) => {
return (
<div className="widget-ask fcol-10">
{results.length > 0 ? (
<Button className="full-width suggestion" action={() => handleAsk(results[0].title)}>
{results[0].title}
</Button>
<Button className="full-width suggestion" action={() => handleAsk(results[0].title)}>
<p className="default">
{results[0].title}
</p>
</Button>
) : undefined}
<div className="flex-container">
<Input
Expand Down
5 changes: 5 additions & 0 deletions app/components/Chatbot/widgit.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
.widget-ask .suggestion {
border: 1px solid var(--colors-cool-grey-200, #dfe3e9);
justify-content: start;
padding: var(--spacing-8) var(--spacing-12);
}

.widget-ask .suggestion:hover {
background: var(--colors-teal-50);
}

.widget-ask .send {
Expand Down

0 comments on commit 4ab71e9

Please sign in to comment.