Skip to content

Commit

Permalink
feat(search): extend rails search, remove invalid attr
Browse files Browse the repository at this point in the history
  • Loading branch information
teenwolfblitzer committed Feb 24, 2023
1 parent 2798fc9 commit 856e5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions docs/app/views/pages/_support_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<%= form_tag(pages_search_path, method: :get) do %>
<%= sage_component SageInputGroup, {
group_id: "panel-component-search",
has_button: true,
group_buttons: [{
icon: "sage-btn--icon-left-search",
Expand All @@ -33,11 +32,11 @@
<% end %>
<div class="docs-panel">
<h2>How can we help?</h2>
<p>Questions? Head to our <a href="https://slack.com/app_redirect?channel=C01A424HY8Y" target="_blank">#sage-support Slack Channel</a> and join the conversation.</p>
<p>Questions? Suggestions? Head to our <a href="https://slack.com/app_redirect?channel=C01A424HY8Y" target="_blank">#sage-support Slack Channel</a> and join the conversation.</p>
</div>
<div class="docs-panel">
<h2>Share your feedback</h2>
<p>We care about improving your experience. Please select an emoji from the choices below to share your feedback.</p>
<p>We care about improving your experience! Share your feedback below.</p>
<br>
<div id="emojicom-widget-inline"></div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion docs/app/views/pages/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
<% end %>
<% end %>
<% if @search.present? %>
<%= @search %>
<%= sage_component SageCard, { spacer: { top: :xl }} do %>
<% sorted_sage_components.each do |component| %>
<% if component[:title].include? @search %>
<% if component[:title].include? @search or component[:description].include? @search %>
<%= sage_component SageChoice, {
attributes: {
href: pages_component_path(component[:title])
Expand Down

0 comments on commit 856e5ef

Please sign in to comment.