Skip to content

Commit e272475

Browse files
authored
chore: use css class that are not generated (#153)
This changes the CSS class used for the Button to not depend on the inline-generated CSS. Fixes MRGFY-6251
1 parent baa5852 commit e272475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mergify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ function buildButton(command, label, tooltip, disabled) {
238238
button.setAttribute("data-size", "small");
239239
button.setAttribute("data-variant", "default");
240240
button.setAttribute("aria-describedby", ":r1o:-loading-announcement");
241-
button.className = "prc-Button-ButtonBase-c50BI flex-1";
241+
button.className = "Button--secondary Button--small Button flex-1";
242242
button.onclick = () => postCommand(command);
243-
button.innerHTML = `<span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-">
244-
<span data-component="text" class="prc-Button-Label-pTQ3x">${label}</span>
243+
button.innerHTML = `<span data-component="buttonContent" data-align="center" class="Button-content">
244+
<span data-component="text" class="Button-label">${label}</span>
245245
</span>`;
246246
container.appendChild(button);
247247

0 commit comments

Comments
 (0)