BigW Consortium Gitlab

Commit 1b2d9c0e by haseeb

anchor changed to button

parent 9bac5c4a
...@@ -6,7 +6,6 @@ export default () => { ...@@ -6,7 +6,6 @@ export default () => {
const embedAction = document.querySelector('#embed-action'); const embedAction = document.querySelector('#embed-action');
shareBtn.addEventListener('click', (event) => { shareBtn.addEventListener('click', (event) => {
event.preventDefault();
shareBtn.classList.add('is-active'); shareBtn.classList.add('is-active');
embedBtn.classList.remove('is-active'); embedBtn.classList.remove('is-active');
snippetUrlArea.value = `${protocol}//${host + pathname}`; snippetUrlArea.value = `${protocol}//${host + pathname}`;
...@@ -14,7 +13,6 @@ export default () => { ...@@ -14,7 +13,6 @@ export default () => {
}); });
embedBtn.addEventListener('click', (event) => { embedBtn.addEventListener('click', (event) => {
event.preventDefault();
embedBtn.classList.add('is-active'); embedBtn.classList.add('is-active');
shareBtn.classList.remove('is-active'); shareBtn.classList.remove('is-active');
const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`; const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`;
......
...@@ -481,7 +481,7 @@ ...@@ -481,7 +481,7 @@
.dropdown-menu-selectable { .dropdown-menu-selectable {
li { li {
a { a, button {
padding: 8px 40px; padding: 8px 40px;
position: relative; position: relative;
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
margin-left: -1px; margin-left: -1px;
} }
.embed-toggle-list li a { .embed-toggle-list li button {
padding: 8px 40px; padding: 8px 40px;
} }
......
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
= sprite_icon('angle-down', size: 12) = sprite_icon('angle-down', size: 12)
%ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list %ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%li %li
%a#embed-btn.btn.btn-transparent.is-active{ href: "#" } %button#embed-btn.btn.btn-transparent.is-active{ href: "#" }
%strong.embed-toggle-list-item Embed %strong.embed-toggle-list-item Embed
%li %li
%a#share-btn.btn.btn-transparent{ href: "#" } %button#share-btn.btn.btn-transparent{ href: "#" }
%strong.embed-toggle-list-item Share %strong.embed-toggle-list-item Share
%input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed } %input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed }
.input-group-btn .input-group-btn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment