Closed
Description
When using DjDT on a local project I found that the close button was not working. After digging into it I found the stylesheet I was using for the project (missing.css) was interfering with the positioning on the panel title such that it now fully overlaps the close button and I couldn't click through to the button beneath the heading.
Fixing was as simple as swapping two lines in the template so that the button is rendered after the title h3 element. Is this something that can be included upstream? I didn't look into anything else like messing with z-index, as this just seemed the more natural way to write it.
{% if panel.has_content and panel.enabled %}
<div id="{{ panel.panel_id }}" class="djdt-panelContent djdt-hidden">
<div class="djDebugPanelTitle">
- <button type="button" class="djDebugClose">×</button>
<h3>{{ panel.title }}</h3>
+ <button type="button" class="djDebugClose">×</button>
</div>
<div class="djDebugPanelContent">
{% if toolbar.should_render_panels %}
Metadata
Metadata
Assignees
Labels
No labels