diff --git a/source/options/components/page-main.ts b/source/options/components/page-main.ts index 8c410dd..a8999b7 100644 --- a/source/options/components/page-main.ts +++ b/source/options/components/page-main.ts @@ -1,8 +1,4 @@ -import { - ConfirmButton, - FeedbackButton, - PrivacyLink, -} from '@holllo/preact-components'; +import {ConfirmButton, FeedbackButton} from '@holllo/preact-components'; import {html} from 'htm/preact'; import {Component} from 'preact'; import browser from 'webextension-polyfill'; @@ -193,18 +189,6 @@ export class PageMain extends Component { ? undefined : html`

${editorError}

`; - const testLinkAttributes: Record = { - class: 'button', - }; - if (this.state.editorBang.searchUrl.includes('{{bang}}')) { - testLinkAttributes.href = this.state.editorBang.searchUrl.replace( - /{{bang}}/g, - 'test', - ); - } else { - testLinkAttributes.disabled = true; - } - return html`
@@ -214,7 +198,6 @@ export class PageMain extends Component { ${editorInputs}
- <${PrivacyLink} attributes=${testLinkAttributes}>Test <${FeedbackButton} attributes=${{class: 'button'}} click=${this.saveBang} diff --git a/source/options/scss/components/page-main.scss b/source/options/scss/components/page-main.scss index 30ece7d..89c81f8 100644 --- a/source/options/scss/components/page-main.scss +++ b/source/options/scss/components/page-main.scss @@ -50,8 +50,6 @@ cursor: pointer; font-weight: bold; padding: 8px; - text-align: center; - text-decoration: none; width: 100%; &.destructive { @@ -59,12 +57,7 @@ border-color: var(--da-1); } - &[disabled] { - cursor: not-allowed; - filter: grayscale(1); - } - - &:not([disabled]):hover { + &:hover { background-color: var(--df-2); border-color: var(--df-2); }