diff --git a/changes/issue-11763-fix-misaligned-icons b/changes/issue-11763-fix-misaligned-icons new file mode 100644 index 0000000000..c3df3d250d --- /dev/null +++ b/changes/issue-11763-fix-misaligned-icons @@ -0,0 +1 @@ +- fix misaligned icons in UI diff --git a/frontend/components/Icon/_styles.scss b/frontend/components/Icon/_styles.scss index 03f557f68d..13c4c4a4cf 100644 --- a/frontend/components/Icon/_styles.scss +++ b/frontend/components/Icon/_styles.scss @@ -2,8 +2,4 @@ // keeps this element the same size as the svg // aligns properly in text, buttons, dropdowns, summary tile custom component display: inline-flex; - - svg { - padding: 1px; - } } diff --git a/frontend/components/icons/PendingPartial.tsx b/frontend/components/icons/PendingPartial.tsx index 6443c9b4b8..61420d1fe4 100644 --- a/frontend/components/icons/PendingPartial.tsx +++ b/frontend/components/icons/PendingPartial.tsx @@ -1,18 +1,18 @@ import React from "react"; -const PendingPartial = () => { +import { COLORS, Colors } from "styles/var/colors"; + +interface ICheckProps { + color?: Colors; +} + +const PendingPartial = ({ color = "ui-fleet-black-50" }: ICheckProps) => { return ( - - - - - + + + + + ); }; diff --git a/frontend/components/icons/SuccessPartial.tsx b/frontend/components/icons/SuccessPartial.tsx index 9f3841c759..ee2e0072dd 100644 --- a/frontend/components/icons/SuccessPartial.tsx +++ b/frontend/components/icons/SuccessPartial.tsx @@ -1,18 +1,17 @@ import React from "react"; +import { COLORS, Colors } from "styles/var/colors"; -const SuccessPartial = () => { +interface ICheckProps { + color?: Colors; +} + +const SuccessPartial = ({ color = "status-success" }: ICheckProps) => { return ( - - + +