Skip to content

Commit a18e12b

Browse files
committed
fix: onfido broken styles
1 parent 0686278 commit a18e12b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/Onfido/BaseOnfidoWeb.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLo
5151
colorBorderButtonPrimary: theme.success,
5252
colorContentButtonSecondaryText: theme.text,
5353
colorBackgroundButtonSecondary: theme.border,
54-
colorBackgroundButtonSecondaryHover: theme.icon,
54+
colorBackgroundButtonSecondaryHover: theme.hoverComponentBG,
5555
colorBackgroundButtonSecondaryActive: theme.icon,
5656
colorBorderButtonSecondary: theme.border,
57+
colorBorderButtonSecondaryHover: theme.transparent,
5758
colorBackgroundIcon: theme.transparent,
5859
colorContentLinkTextHover: theme.appBG,
5960
colorBorderLinkUnderline: theme.link,

src/components/Onfido/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/* These style overrides are necessary so that the Onfido modal looks nice */
2+
:root {
3+
--ods-color-border-separator: transparent;
4+
}
5+
26
.onfido-sdk-ui-Modal-inner {
37
border-style: none !important;
48
width: 100% !important;

0 commit comments

Comments
 (0)