Commit 1b2d9c0e authored by haseeb's avatar haseeb

anchor changed to button

parent 9bac5c4a
......@@ -6,7 +6,6 @@ export default () => {
const embedAction = document.querySelector('#embed-action');
shareBtn.addEventListener('click', (event) => {
event.preventDefault();
shareBtn.classList.add('is-active');
embedBtn.classList.remove('is-active');
snippetUrlArea.value = `${protocol}//${host + pathname}`;
......@@ -14,7 +13,6 @@ export default () => {
});
embedBtn.addEventListener('click', (event) => {
event.preventDefault();
embedBtn.classList.add('is-active');
shareBtn.classList.remove('is-active');
const scriptTag = `<script src="${protocol}//${host + pathname}.js"></script>`;
......
......@@ -481,7 +481,7 @@
.dropdown-menu-selectable {
li {
a {
a, button {
padding: 8px 40px;
position: relative;
......
......@@ -63,7 +63,7 @@
margin-left: -1px;
}
.embed-toggle-list li a {
.embed-toggle-list li button {
padding: 8px 40px;
}
......
......@@ -38,10 +38,10 @@
= sprite_icon('angle-down', size: 12)
%ul.dropdown-menu.dropdown-menu-selectable.embed-toggle-list
%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
%li
%a#share-btn.btn.btn-transparent{ href: "#" }
%button#share-btn.btn.btn-transparent{ href: "#" }
%strong.embed-toggle-list-item Share
%input#snippet-url-area.snippet-embed-input.form-control{ type: "text", autocomplete: 'off', value: snippet_embed }
.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