Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Drawer closer and expanders rendering in the wrong places. #13

Open
blazebarsamian opened this issue Nov 13, 2018 · 0 comments
Open

Drawer closer and expanders rendering in the wrong places. #13

blazebarsamian opened this issue Nov 13, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@blazebarsamian
Copy link

Background: The drawer expander and closer positions need to be swapped. rev-Drawer-expander should be inside rev-Drawer-contents. and rev-Drawer-closer should be outside (above) rev-Drawer-contents

When I use:

<%= drawer closer: "-", expander: "+" do %>
   drawer stuff
<% end %>

It renders out like this:

<div class="rev-Drawer">
  <a class="rev-Drawer-expander" data-rev-add-class="rev-Drawer--open" data-rev-init="true" data-rev-parent="rev-Drawer">+</a>
  <div class="rev-Drawer-contents">
    <a class="rev-Drawer-closer" data-rev-init="true" data-rev-parent="rev-Drawer" data-rev-remove-class="rev-Drawer--open">-</a>
      drawer stuff
  </div>
</div>

But it should render out like this:

<div class="rev-Drawer">
  <a class="rev-Drawer-closer" data-rev-init="true" data-rev-parent="rev-Drawer" data-rev-remove-class="rev-Drawer--open">-</a>
  <div class="rev-Drawer-contents">
    <a class="rev-Drawer-expander" data-rev-add-class="rev-Drawer--open" data-rev-init="true" data-rev-parent="rev-Drawer">+</a>
      drawer stuff
  </div>
</div>
@blazebarsamian blazebarsamian added the bug Something isn't working label Nov 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant