Skip to content

Commit 0b81614

Browse files
committed
fix/Replace close icon with svg partial
1 parent e85bcd2 commit 0b81614

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/views/layouts/alert.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
-->
3535
<div class="inline-block align-bottom bg-white rounded-sm px-4 pt-5 pb-4 text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6" role="dialog" aria-modal="true" aria-labelledby="modal-headline">
3636
<span data-action="click->alert#close" title="Close alert" class="hover:bg-cyan-hover transition cursor-pointer absolute z-12 -top-4 -right-5 inline-flex items-center p-1 border border-transparent rounded-full shadow-sm text-white bg-cyan mr-2">
37-
<img src="/icons/white/cancel.svg" class="h-7 w-7">
37+
<%= render partial: 'shared/icons/close', locals: { height: 7, width: 7, color: 'text-white' } %>
3838
</span>
3939

4040
<div class="mt-4 text-center sm:mt-0 sm:ml-4 sm:text-left">

app/views/layouts/modal.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
-->
3636
<div class="z-10 relative mt-2 inline-block align-bottom bg-white rounded-sm px-4 pt-5 pb-4 text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full sm:p-6" role="dialog" aria-modal="true" aria-labelledby="modal-headline" data-modal-target="body">
3737
<span data-action="click->modal#close" title="Close modal" class="hover:bg-cyan-hover transition cursor-pointer absolute z-12 -top-4 -right-5 inline-flex items-center p-1 border border-transparent rounded-full shadow-sm text-white bg-cyan mr-2">
38-
<img src="/icons/white/cancel.svg" class="h-7 w-7">
38+
<%= render partial: 'shared/icons/close', locals: { height: 7, width: 7, color: 'text-white' } %>
3939
</span>
4040
<%= yield %>
4141
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<svg class="w-<%= width %> h-<%= height %> <%= color %>"" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2+
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path>
3+
</svg>

0 commit comments

Comments
 (0)