127473fff8
* Fix tabnav styles on #create and #edit views The Primer CSS-provided `tabnav` styles were not being used on the Edit and Preview tabs on the create and edit pages. After following Primer's documentation [1], it looks like we were using the `aria-current` attribute incorrectly. Dynamically adding/removing this attribute on the selected tab fixes the issue. [1]: https://primer-css-git-next-inputs.primer.now.sh/css/components/navigation#tabnav * Recompile static assets
17 lines
474 B
Plaintext
17 lines
474 B
Plaintext
<div id="wiki-wrapper" class="edit">
|
|
<div id="head">
|
|
{{>navbar}}
|
|
<h1 class="py-4">Editing <strong>{{title}}</strong></h1>
|
|
</div>
|
|
<div class="tabnav">
|
|
<nav class="tabnav-tabs">
|
|
<a href="#" id="edit" class="tabnav-tab selected" aria-current="page">
|
|
Edit
|
|
</a>
|
|
<a href="#" id="preview" class="tabnav-tab">Preview</a>
|
|
</nav>
|
|
</div>
|
|
<div class="tabnav-div" id="edit-content">{{>editor}}</div>
|
|
<div class="tabnav-div" id="preview-content"></div>
|
|
</div>
|