Skip to content

Commit

Permalink
Disabler for pointer events (decidim#11449)
Browse files Browse the repository at this point in the history
* Added a disabler for pointer event

* Improved workaround for the tabs +1

* Indentation line 19
  • Loading branch information
greenwoodt authored Aug 7, 2023
1 parent 035771c commit 00430f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decidim-core/app/cells/decidim/tab_panels/show.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% if tabs.length > 0 %>
<div class="layout-main__section" data-component="accordion" data-multiselectable="false" data-collapsible="false">
<ul class="tab-x-container">
<ul class="tab-x-container tabs-<%= tabs.length %>">
<% tabs.each_with_index do |tab, i| %>
<li>
<button id="trigger-<%= tab[:id] %>" class="tab-x" data-controls="panel-<%= tab[:id] %>" data-open="<%= "true" if i.zero? %>">
<%= icon tab[:icon], class: "text-gray fill-current" %><%= tab[:text] %>
<%= icon tab[:icon], class: "text-gray fill-current" %><%= tab[:text] %> <% "tabs-1" %>
</button>
</li>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
}
}
}

.tabs-1 {
pointer-events: none;
}

0 comments on commit 00430f5

Please sign in to comment.