Skip to content

Commit 307fd31

Browse files
author
Miguel Solorio
committed
Add secondary button style
1 parent 8356f10 commit 307fd31

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

preview-src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ body button.checkedOut {
155155
background-color: transparent;
156156
}
157157

158+
body button.secondary,
159+
body button.secondary:hover {
160+
-webkit-filter: grayscale(100%);
161+
}
162+
158163
body button svg {
159164
fill: var(--vscode-button-foreground);
160165
margin-right: 6px;

preview-src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function updateCheckoutButton(isCheckedOut: boolean) {
201201
function setTextArea() {
202202
document.getElementById('comment-form')!.innerHTML = `<textarea id="${ElementIds.CommentTextArea}"></textarea>
203203
<div class="form-actions">
204-
<button id="${ElementIds.Close}">Close Pull Request</button>
205-
<button id="${ElementIds.RequestChanges}" disabled="true">Request Changes</button>
206-
<button id="${ElementIds.Approve}">Approve</button>
204+
<button id="${ElementIds.Close}" class="secondary">Close Pull Request</button>
205+
<button id="${ElementIds.RequestChanges}" disabled="true" class="secondary">Request Changes</button>
206+
<button id="${ElementIds.Approve}" class="secondary">Approve</button>
207207
<button class="reply-button" id="${ElementIds.Reply}" disabled="true">Comment</button>
208208
</div>`;
209209

0 commit comments

Comments
 (0)