Skip to content

Commit 71c6b33

Browse files
author
Jilles Soeters
committed
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.
1 parent d5f13e1 commit 71c6b33

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

core/client/assets/sass/patterns/navlist.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
border-bottom: 1px solid #E0DFD7;
4444
}
4545

46+
button {
47+
text-align: left;
48+
}
49+
4650
a {
4751
color: $darkgrey;
4852
}

core/client/templates/-navbar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
}}
3131

32-
<div class="nav-item user-menu" data-href="#">
32+
<div class="nav-item user-menu">
3333
{{#gh-dropdown-button dropdownName="user-menu" tagName="div" classNames="nav-label clearfix"}}
3434
{{#if session.user.image}}
3535
<div class="image"><img {{bind-attr src=session.user.image alt=userImageAlt}} /></div>

core/client/templates/post-settings-menu.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242

4343
<ul class="nav-list nav-list-block">
4444
{{#gh-tab tagName="li" classNames="nav-list-item"}}
45-
<a href="#">
45+
<button type="button">
4646
<b>Meta Data</b>
4747
<span>Extra content for SEO and social media.</span>
48-
</a>
48+
</button>
4949
{{/gh-tab}}
5050
</ul>
5151

0 commit comments

Comments
 (0)