Skip to content

Commit e2dc0d6

Browse files
Merge pull request #2589 from github/robertbrignull/data-title-buttons-background
Use better colours for title buttons
2 parents 8fab24f + bf087d2 commit e2dc0d6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

extensions/ql-vscode/src/view/data-extensions-editor/LibraryRow.tsx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ const ModeledPercentage = styled.span`
5757
color: var(--vscode-descriptionForeground);
5858
`;
5959

60-
const TitleButton = styled(VSCodeButton)`
61-
background-color: transparent;
62-
63-
&:hover {
64-
pointer: cursor;
65-
background-color: var(--vscode-button-secondaryBackground);
66-
}
67-
`;
68-
6960
const ButtonsContainer = styled.div`
7061
display: flex;
7162
gap: 0.4em;
@@ -142,14 +133,14 @@ export const LibraryRow = ({
142133
</ModeledPercentage>
143134
{hasUnsavedChanges ? <VSCodeTag>UNSAVED</VSCodeTag> : null}
144135
</NameContainer>
145-
<TitleButton onClick={handleModelWithAI}>
136+
<VSCodeButton appearance="icon" onClick={handleModelWithAI}>
146137
<Codicon name="lightbulb-autofix" label="Model with AI" />
147138
&nbsp;Model with AI
148-
</TitleButton>
149-
<TitleButton onClick={handleModelFromSource}>
139+
</VSCodeButton>
140+
<VSCodeButton appearance="icon" onClick={handleModelFromSource}>
150141
<Codicon name="code" label="Model from source" />
151142
&nbsp;Model from source
152-
</TitleButton>
143+
</VSCodeButton>
153144
</TitleContainer>
154145
{isExpanded && (
155146
<>

0 commit comments

Comments
 (0)