Skip to content

Commit 24dd925

Browse files
committed
imporved button
1 parent b2c9465 commit 24dd925

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

script.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,24 @@ function startLoading() {
88

99
const getFormatButton = function () {
1010
var button = document.createElement("button");
11-
button.innerHTML = "FORMAT";
11+
button.innerHTML = "Format";
1212
button.className = "tool-button";
1313
button.id = "format-button";
1414
button.setAttribute("icon", "information");
1515
button.setAttribute("data-no-border", "true");
1616
button.setAttribute("type", "ghost");
1717
button.style.marginRight = "10px";
1818
button.style.border = "none";
19-
button.style.backgroundColor = "green";
19+
button.style.backgroundColor = "#218838";
2020
button.style.borderImage = "none";
2121
button.style.outline = "none";
2222
button.style.cursor = "pointer";
2323
button.title = "Format";
24+
button.style.padding = "4px 20px";
2425
button.style.color = "white";
26+
button.style.fontWeight = "600";
27+
button.style.borderRadius = "3px";
28+
2529
button.addEventListener("click", process);
2630
return button;
2731
};

0 commit comments

Comments
 (0)