Skip to content

Commit 6bc832e

Browse files
committed
Don't apply styling intended for inline text to data-suggestion attribute. Also, add a bit of a special case for card suggestions
1 parent 3fe8c64 commit 6bc832e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

js/chat/chat.scss

Lines changed: 11 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,13 @@ shiny-chat-container {
4852
}
4953
}
5054
}
55+
56+
// Styling for card suggestions
57+
.card[data-suggestion]:hover,
58+
.card:has([data-suggestion]) {
59+
color: var(--bs-link-color, #007bc2);
60+
border-color: rgba(var(--bs-link-color-rgb), 0.5);
61+
}
5162
}
5263

5364
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)