Skip to content

Commit 537acdd

Browse files
[AXON-1483] add dedicated stylesheet for issue suggestions (#1275)
1 parent 2c589b6 commit 537acdd

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

src/webviews/components/aiCreateIssue/AISuggestionFooter.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// TODO: extract the relevant bits, decouple from Rovo Dev styles
2-
import 'src/rovo-dev/ui/RovoDev.css';
1+
import './Suggestions.css';
32

43
import { Checkbox } from '@atlaskit/checkbox';
54
import { HelperMessage } from '@atlaskit/form';
@@ -83,14 +82,17 @@ const AISuggestionFooter: React.FC<{
8382
? 'Thank you for your feedback! Your input helps us improve Rovo Dev.'
8483
: 'Please provide feedback to improve Rovo Dev work item generation'}
8584
</HelperMessage>
86-
<div className="chat-message-actions" style={{ display: 'flex', gap: '2px', marginTop: '10px' }}>
85+
<div
86+
className="ai-suggestion-feedback-actions"
87+
style={{ display: 'flex', gap: '2px', marginTop: '10px' }}
88+
>
8789
<div style={{ flex: 1 }}></div>
8890
<Tooltip content="Helpful">
8991
<button
9092
onClick={() => handleFeedback(true)}
9193
type="button"
9294
aria-label="like-response-button"
93-
className="chat-message-action"
95+
className="ai-suggestion-feedback-action"
9496
style={{ visibility: feedbackSent ? 'hidden' : 'visible' }}
9597
>
9698
<ThumbsUpIcon label="thumbs-up" spacing="none" />
@@ -103,7 +105,7 @@ const AISuggestionFooter: React.FC<{
103105
}}
104106
type="button"
105107
aria-label="dislike-response-button"
106-
className="chat-message-action"
108+
className="ai-suggestion-feedback-action"
107109
style={{ visibility: feedbackSent ? 'hidden' : 'visible' }}
108110
>
109111
<ThumbsDownIcon label="thumbs-down" spacing="none" />
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* Styles for AI suggestion feedback buttons */
2+
3+
.ai-suggestion-feedback-actions {
4+
display: flex;
5+
flex-direction: row;
6+
align-items: center;
7+
gap: 0;
8+
margin-bottom: 8px;
9+
}
10+
11+
.ai-suggestion-feedback-action {
12+
display: flex;
13+
align-items: center;
14+
background: transparent;
15+
border: none;
16+
color: var(--vscode-editor-foreground);
17+
cursor: pointer;
18+
border-radius: 2px;
19+
}
20+
21+
.ai-suggestion-feedback-action:hover {
22+
background: var(--vscode-button-secondaryHoverBackground);
23+
}

0 commit comments

Comments
 (0)