Skip to content

Commit

Permalink
Merge branch 'release/v0.1.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
bopm committed Apr 4, 2024
2 parents bba8bac + fa8df2c commit 5fda3f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
turbo_material (0.1.8)
turbo_material (0.1.9)
importmap-rails (~> 2.0.1)
rails (~> 7.1, >= 7.1.2)
stimulus-rails (~> 1.3)
Expand Down
4 changes: 3 additions & 1 deletion app/views/components/_select.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%# locals: (form:, disabled: false, required: false, name:, label: nil, id:, checked: false, value: nil, parent: nil, frame: nil, selected_text: nil, fixed: false, options: [], hint: nil, helper: nil, additional_classes: 'w-full') %>
<div class="mdc-select mdc-select--filled <%= disabled ? ' mdc-select--disabled' : '' %><%= required ? ' mdc-select--required' : '' %> <%= additional_classes %>"
<div class="mdc-select mdc-select--filled <%= label ? '' : 'mdc-select--no-label' %> <%= disabled ? ' mdc-select--disabled' : '' %><%= required ? ' mdc-select--required' : '' %> <%= additional_classes %>"
data-controller="material-select" <% if frame %> data-frame="<%= frame %>"<% end %> id="<%= id %>">
<%= form.hidden_field name.to_sym, value: value %>
<div class="mdc-select__anchor"
Expand All @@ -11,7 +11,9 @@
<% if required %>aria-required="true"<% end %>
>
<span class="mdc-select__ripple"></span>
<%- if label -%>
<span id="<%= id %>-label" class="mdc-floating-label"><%= label || name.capitalize %></span>
<%- end -%>
<span class="mdc-select__selected-text-container">
<span id="<%= id %>-selected-text" class="mdc-select__selected-text">
<%= selected_text || value %>
Expand Down
2 changes: 1 addition & 1 deletion lib/turbo_material/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TurboMaterial
VERSION = "0.1.8"
VERSION = "0.1.9"
end

0 comments on commit 5fda3f3

Please sign in to comment.