We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4120ebd commit bdad4ffCopy full SHA for bdad4ff
src/injectors/github-injector.ts
@@ -105,6 +105,13 @@ abstract class ButtonInjectorBase implements ButtonInjector {
105
} else {
106
actionbar.appendChild(btn);
107
}
108
+
109
+ const primaryButtons = actionbar.getElementsByClassName("btn-primary");
110
+ if (primaryButtons && primaryButtons.length > 1) {
111
+ Array.from(primaryButtons)
112
+ .slice(0, primaryButtons.length - 1)
113
+ .forEach(primaryButton => primaryButton.classList.replace("btn-primary", "btn-secondary"));
114
+ }
115
116
117
protected renderButton(url: string, openAsPopup: boolean): HTMLElement {
0 commit comments