Skip to content

Commit 427a1f2

Browse files
authored
Merge pull request Expensify#64449 from mkzie2/mkzie2-issue/63691
fix: Onfido broken styles
2 parents 737f30f + c233cc3 commit 427a1f2

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/components/Onfido/BaseOnfidoWeb.tsx

Lines changed: 14 additions & 2 deletions
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,
55-
colorBackgroundButtonSecondaryActive: theme.icon,
54+
colorBackgroundButtonSecondaryHover: theme.hoverComponentBG,
55+
colorBackgroundButtonSecondaryActive: theme.hoverComponentBG,
5656
colorBorderButtonSecondary: theme.border,
57+
colorBorderButtonSecondaryHover: theme.transparent,
5758
colorBackgroundIcon: theme.transparent,
5859
colorContentLinkTextHover: theme.appBG,
5960
colorBorderLinkUnderline: theme.link,
@@ -66,6 +67,17 @@ function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLo
6667
colorBackgroundDocTypeButtonHover: theme.successHover,
6768
colorBackgroundButtonIconHover: theme.transparent,
6869
colorBackgroundButtonIconActive: theme.transparent,
70+
colorBorderButtonPrimaryFocus: theme.transparent,
71+
colorBorderButtonPrimaryActive: theme.transparent,
72+
colorBorderButtonSecondaryFocus: theme.transparent,
73+
colorBorderButtonSecondaryActive: theme.transparent,
74+
colorIcon: theme.icon,
75+
colorContentButtonTertiaryText: theme.link,
76+
colorBackgroundButtonTertiaryHover: theme.hoverComponentBG,
77+
colorBorderButtonTertiaryFocus: theme.transparent,
78+
colorInputOutline: theme.borderFocus,
79+
colorBackgroundInput: theme.appBG,
80+
colorBorderInput: theme.border,
6981
},
7082
steps: [
7183
{

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)