Skip to content

Commit

Permalink
fix: color inconsistency with design docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LaeekAhmed authored Dec 16, 2024
1 parent 987d75c commit ed8e9a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<div class="my-2 flex items-center">
<% if @filter[:multi] %>
<%= content_tag :input, "",
class: "focus:ring-purple-400 cursor-pointer h-5 w-5 text-purple-500 bg-purple-100 border-0 rounded",
class: "focus:ring-vio
-400 cursor-pointer h-5 w-5 text-violet-500 bg-violet-100 border-0 rounded",
type: "checkbox",
name: "filter[#{@filter[:filter_name]}][]",
value: sub_filter[:value],
Expand All @@ -17,7 +18,7 @@
%>
<% else %>
<%= content_tag :input, "",
class: "focus:ring-purple-400 cursor-pointer h-5 w-5 text-purple-500 bg-purple-100 border-0",
class: "focus:ring-violet-400 cursor-pointer h-5 w-5 text-violet-500 bg-violet-100 border-0",
type: "radio",
name: "filter[#{@filter[:filter_name]}]",
value: sub_filter[:value],
Expand Down
2 changes: 1 addition & 1 deletion app/components/sn_filterable/main_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<% selected_explcitly = value == @filtered.queries["per"].to_i %>
<% selected_by_default = @filtered.queries["per"].blank? && value == @filtered.items.default_per_page %>
<%= content_tag :input, "",
class: "focus:ring-purple-400 cursor-pointer h-5 w-5 text-purple-500 bg-purple-100 border-0",
class: "focus:ring-violet-400 cursor-pointer h-5 w-5 text-violet-500 bg-violet-100 border-0",
type: "radio",
id: "per-#{value}",
"x-data": { iteracted: selected_explcitly }.to_json,
Expand Down

0 comments on commit ed8e9a3

Please sign in to comment.