Sha256: 10c94c0f07583fb4b582d4c37b174facafd32de7f0ba8013a4138ba684464015

Contents?: true

Size: 354 Bytes

Versions: 12

Compression:

Stored size: 354 Bytes

Contents

<%= content_tag(:div, **@input.validation_arguments) do %>
  <span class="FormControl-inlineValidation--visual"><%= render(Primer::Beta::Octicon.new(icon: :"alert-fill", size: :xsmall, aria: { hidden: true })) %></span>
  <%= content_tag(:span, @input.invalid? ? @input.validation_messages.first : "", **@input.validation_message_arguments) %>
<% end %>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.16.0 lib/primer/forms/validation_message.html.erb
openproject-primer_view_components-0.15.0 lib/primer/forms/validation_message.html.erb
openproject-primer_view_components-0.14.0 lib/primer/forms/validation_message.html.erb
openproject-primer_view_components-0.13.1 lib/primer/forms/validation_message.html.erb
primer_view_components-0.13.2 lib/primer/forms/validation_message.html.erb
primer_view_components-0.13.1 lib/primer/forms/validation_message.html.erb
openproject-primer_view_components-0.13.0 lib/primer/forms/validation_message.html.erb
primer_view_components-0.13.0 lib/primer/forms/validation_message.html.erb
primer_view_components-0.12.0 lib/primer/forms/validation_message.html.erb
primer_view_components-0.11.0 lib/primer/forms/validation_message.html.erb
openproject-primer_view_components-0.12.1 lib/primer/forms/validation_message.html.erb
primer_view_components-0.10.0 lib/primer/forms/validation_message.html.erb