Skip to content

Commit 81a127d

Browse files
committed
feat: update InfoBlock to use Icon component for information and neutral variants; modify ic-info-filled.svg for improved styling
1 parent 024b8bd commit 81a127d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Assets/IconV2/ic-info-filled.svg

Lines changed: 2 additions & 2 deletions
Loading

src/Shared/Components/InfoBlock/constants.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { ReactComponent as ICInfoFilled } from '@Icons/ic-info-filled.svg'
1817
import { ReactComponent as ICError } from '@Icons/ic-error.svg'
1918
import { ReactComponent as ICSuccess } from '@Icons/ic-success.svg'
2019
import { ReactComponent as ICWarningY5 } from '@Icons/ic-warning-y5.svg'
2120
import { ReactComponent as ICHelp } from '@Icons/ic-help.svg'
2221
import { ComponentSizeType } from '@Shared/constants'
2322
import { ButtonProps } from '../Button'
23+
import { Icon } from '../Icon'
2424
import { InfoBlockProps } from './types'
2525

2626
export const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string> = {
@@ -35,10 +35,10 @@ export const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string> = {
3535
export const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']> = {
3636
error: <ICError />,
3737
help: <ICHelp className="fcv-5" />,
38-
information: <ICInfoFilled />,
38+
information: <Icon name="ic-info-filled" color="B500" />,
3939
success: <ICSuccess />,
4040
warning: <ICWarningY5 />,
41-
neutral: <ICInfoFilled className="circle-fill--n7" />,
41+
neutral: <Icon name="ic-info-filled" color={null} />,
4242
}
4343

4444
export const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string> = {

0 commit comments

Comments
 (0)