Skip to content

Commit c65ca17

Browse files
authored
Don't apply styling intended for inline text to data-suggestion attribute; better styling for card suggestions (#1876)
1 parent c5d9b9b commit c65ca17

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

js/chat/chat.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ shiny-chat-container {
1818
.suggestion,
1919
[data-suggestion] {
2020
cursor: pointer;
21+
}
22+
23+
// Styling for inline-text
24+
.suggestion {
2125
color: var(--bs-link-color, #007bc2);
2226

2327
text-decoration-color: var(--bs-link-color, #007bc2);
@@ -48,6 +52,12 @@ shiny-chat-container {
4852
}
4953
}
5054
}
55+
56+
// Styling for card suggestions
57+
.card[data-suggestion]:hover {
58+
color: var(--bs-link-color, #007bc2);
59+
border-color: rgba(var(--bs-link-color-rgb), 0.5);
60+
}
5161
}
5262

5363
shiny-chat-messages {

shiny/www/py-shiny/chat/chat.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/chat/chat.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)