Skip to content

Commit

Permalink
make button a svg
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-jos committed Jan 3, 2025
1 parent 73640e3 commit 6dd7804
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ npm-debug.log

*storybook.log
config/dev.secret.exs

# Ignore files used by MacOS Finder
.DS_Store
*/.DS_Store
2 changes: 1 addition & 1 deletion js/components/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Modal = ({
<div className='grid grid-cols-[1fr_max-content] grid-rows-[max-content_1fr] [grid-template-areas:"title_close"_"contents_contents"] overflow-scroll'>
<div className="[grid-area:title]">{title}</div>
<button className="[grid-area:close]" onClick={onClose}>
[x]
<img src="/images/close.svg" alt="Close" className="w-4 fill-black hover:bg-gray-300"/>
</button>
<div className="[grid-area:contents]">{children}</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions priv/static/images/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6dd7804

Please sign in to comment.