Skip to content

Commit

Permalink
add the svg icon without the black fill and adjust the related compon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
nozomione committed Sep 18, 2023
1 parent 2ae9bd6 commit 6200cf5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/src/components/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Search from '../images/search.svg'
import Trashcan from '../images/trash-can.svg'
import View from '../images/view.svg'
import Warning from '../images/warning.svg'
import WarningNoFill from '../images/warning-red.svg'
import Twitter from '../images/twitter.svg'
import Facebook from '../images/facebook.svg'
import Instagram from '../images/instagram.svg'
Expand All @@ -47,6 +48,7 @@ export const SVGs = {
Trashcan,
View,
Warning,
WarningNoFill,
Twitter,
Instagram,
Facebook,
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/WarningCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ export const WarningCard = ({ label, children }) => {
<CardBandLarge
align="center"
elevation="small"
pad={{ top: 'large' }}
pad={{ top: 'xxlarge' }}
width="100%"
>
<Box margin={{ bottom: 'medium' }}>
<WarningText
iconColor="error"
iconNoFill
iconMargin="none"
iconSize="24px"
text={
Expand Down
7 changes: 6 additions & 1 deletion client/src/components/WarningText.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const WarningText = ({
link = '',
linkLable = '',
iconColor = 'status-warning',
iconNoFill = false,
iconMargin = { right: 'medium' },
iconPad = { right: 'small' },
iconSize = '16px',
Expand All @@ -21,7 +22,11 @@ export const WarningText = ({
margin={{ top: 'small', bottom: 'medium' }}
>
<Box margin={iconMargin} pad={iconPad}>
<Icon color={iconColor} size={iconSize} name="Warning" />
<Icon
color={iconColor}
size={iconSize}
name={`Warning${iconNoFill ? 'NoFill' : ''}`}
/>
</Box>
<Paragraph>
{text} {lineBreak && <br />}
Expand Down
3 changes: 3 additions & 0 deletions client/src/images/warning-red.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 6200cf5

Please sign in to comment.