mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Remove hash after the url when clicking Meta Data
Removes that hash appended to the URL when clicking Meta Data in post settings. Closes #4386 When clicking 'Meta Data' the click event appends a # to the URL. I replaced the a with a button element so that won't happen anymore. The button has a type attribute because it will try and submit the form without it. Added text-align: left to the navlist button because the button centers it's content by default.
This commit is contained in:
parent
d5f13e1510
commit
71c6b33385
3 changed files with 7 additions and 3 deletions
|
@ -43,6 +43,10 @@
|
|||
border-bottom: 1px solid #E0DFD7;
|
||||
}
|
||||
|
||||
button {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $darkgrey;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
}}
|
||||
|
||||
<div class="nav-item user-menu" data-href="#">
|
||||
<div class="nav-item user-menu">
|
||||
{{#gh-dropdown-button dropdownName="user-menu" tagName="div" classNames="nav-label clearfix"}}
|
||||
{{#if session.user.image}}
|
||||
<div class="image"><img {{bind-attr src=session.user.image alt=userImageAlt}} /></div>
|
||||
|
|
|
@ -42,10 +42,10 @@
|
|||
|
||||
<ul class="nav-list nav-list-block">
|
||||
{{#gh-tab tagName="li" classNames="nav-list-item"}}
|
||||
<a href="#">
|
||||
<button type="button">
|
||||
<b>Meta Data</b>
|
||||
<span>Extra content for SEO and social media.</span>
|
||||
</a>
|
||||
</button>
|
||||
{{/gh-tab}}
|
||||
</ul>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue