Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: color inconsistency with design docs #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading