Skip to content

Commit 7118022

Browse files
committed
rejigger icons for clarity
1 parent 4686a6f commit 7118022

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

File renamed without changes.

app/components/base_component.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class BaseComponent < ViewComponent::Base
3434
path: "icons/arrow_open.svg",
3535
alt: "chevron up"
3636
},
37-
"alert" => {
38-
path: "icons/alert.svg",
39-
alt: "alert"
37+
"warn" => {
38+
path: "icons/alert_triangle.svg",
39+
alt: "warning"
4040
},
4141
"error" => {
42-
path: "icons/error_icon.svg",
42+
path: "icons/alert_round.svg",
4343
alt: "error"
4444
},
4545
"delete" => {

app/components/checkboxes_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<%= render(FormErrorsComponent.new(form: @form, method: @method, small: @small)) %>
3131
<% if has_warning? %>
3232
<p class="form_warning flex items-center gap-cfa-sm text-text-body-secondary">
33-
<%= inline_icon(:alert, size: icon_size, css_class: "text-warning") %>
33+
<%= inline_icon(:warn, size: icon_size, css_class: "text-warning") %>
3434
<span><%= @warning_message %></span>
3535
</p>
3636
<% end %>

app/components/radio_buttons_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<%= render(FormErrorsComponent.new(form: @form, method: @method, small: @small)) %>
3030
<% if has_warning? %>
3131
<p class="form_warning flex items-center gap-cfa-sm text-text-body-secondary">
32-
<%= inline_icon(:alert, size: icon_size, css_class: "text-warning") %>
32+
<%= inline_icon(:warn, size: icon_size, css_class: "text-warning") %>
3333
<span><%= @warning_message %></span>
3434
</p>
3535
<% end %>

test/components/previews/icon_component_preview.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def xmark
2020
render(IconComponent.new(icon: "xmark"))
2121
end
2222

23-
def alert
24-
render(IconComponent.new(icon: "alert"))
23+
def warn
24+
render(IconComponent.new(icon: "warn"))
2525
end
2626

2727
def delete

0 commit comments

Comments
 (0)