diff --git a/packages/phrases/src/locales/en.ts b/packages/phrases/src/locales/en.ts index 325cf123c..c89417501 100644 --- a/packages/phrases/src/locales/en.ts +++ b/packages/phrases/src/locales/en.ts @@ -47,7 +47,7 @@ const translation = { terms_of_use: 'Terms of Use', create_account: 'Create Account', forgot_password: 'Forgot Password?', - or: 'Or', + or: 'or', enter_passcode: 'The passcode has been sent to {{address}}', passcode_sent: 'The passcode has been sent', resend_after_seconds: 'Resend after {{seconds}} seconds', diff --git a/packages/ui/src/components/AppContent/index.module.scss b/packages/ui/src/components/AppContent/index.module.scss index f0ea9483b..07e98cb90 100644 --- a/packages/ui/src/components/AppContent/index.module.scss +++ b/packages/ui/src/components/AppContent/index.module.scss @@ -1,8 +1,15 @@ @use '@/scss/underscore' as _; /* Foundation */ -$font-family: 'PingFang SC', 'SF Pro Display', 'Siyuan Heiti', 'Roboto'; -$font-family-small: 'PingFang SC', 'SF Pro Text', 'Siyuan Heiti', 'Roboto'; +$font-family: -apple-system, + system-ui, + 'BlinkMacSystemFont', + 'Segoe UI', + 'Roboto', + 'Helvetica Neue', + 'Helvetica', + 'Arial', + sans-serif; .content { position: absolute; @@ -56,6 +63,6 @@ $font-family-small: 'PingFang SC', 'SF Pro Text', 'Siyuan Heiti', 'Roboto'; --font-title: 600 32px/40px #{$font-family}; --font-body-bold: 500 16px/20px #{$font-family}; --font-body: 400 16px/20px #{$font-family}; - --font-body-small: 500 14px/18px #{$font-family-small}; - --font-caption: 400 14px/18px #{$font-family-small}; + --font-body-small: 500 14px/18px #{$font-family}; + --font-caption: 400 14px/18px #{$font-family}; } diff --git a/packages/ui/src/components/ConfirmModal/index.module.scss b/packages/ui/src/components/ConfirmModal/index.module.scss index dbfb72aed..58f54ea2f 100644 --- a/packages/ui/src/components/ConfirmModal/index.module.scss +++ b/packages/ui/src/components/ConfirmModal/index.module.scss @@ -6,7 +6,7 @@ .container { background: var(--color-dialogue); - padding: _.unit(6) _.unit(5); + padding: _.unit(5); border-radius: var(--radius); } diff --git a/packages/ui/src/components/ConfirmModal/index.tsx b/packages/ui/src/components/ConfirmModal/index.tsx index 3de9b6dab..09d731e49 100644 --- a/packages/ui/src/components/ConfirmModal/index.tsx +++ b/packages/ui/src/components/ConfirmModal/index.tsx @@ -37,6 +37,12 @@ const ConfirmModal = ({ overlayClassName={classNames(modalStyles.overlay, styles.overlay)} parentSelector={() => document.querySelector('main') ?? document.body} ariaHideApp={false} + onAfterOpen={() => { + document.body.classList.add('static'); + }} + onAfterClose={() => { + document.body.classList.remove('static'); + }} >
{children}
diff --git a/packages/ui/src/components/Drawer/index.module.scss b/packages/ui/src/components/Drawer/index.module.scss index 8df635af0..c3bdbddd4 100644 --- a/packages/ui/src/components/Drawer/index.module.scss +++ b/packages/ui/src/components/Drawer/index.module.scss @@ -1,6 +1,8 @@ @use '@/scss/underscore' as _; .container { + border-top-left-radius: 16px; + border-top-right-radius: 16px; padding: _.unit(5); background: var(--color-dialogue); } diff --git a/packages/ui/src/components/Drawer/index.tsx b/packages/ui/src/components/Drawer/index.tsx index 2766088a4..d77b9333b 100644 --- a/packages/ui/src/components/Drawer/index.tsx +++ b/packages/ui/src/components/Drawer/index.tsx @@ -26,6 +26,12 @@ const Drawer = ({ className, isOpen = false, children, onClose }: Props) => { appElement={document.querySelector('main') ?? document.body} closeTimeoutMS={300} onRequestClose={onClose} + onAfterOpen={() => { + document.body.classList.add('static'); + }} + onAfterClose={() => { + document.body.classList.remove('static'); + }} >
diff --git a/packages/ui/src/components/Input/index.module.scss b/packages/ui/src/components/Input/index.module.scss index 54ae274e2..7a9dc2fd1 100644 --- a/packages/ui/src/components/Input/index.module.scss +++ b/packages/ui/src/components/Input/index.module.scss @@ -8,6 +8,9 @@ border: _.border(); background: var(--color-layer); color: var(--color-text); + // fix in safari input field line-height issue + height: 46px; + overflow: hidden; > *:not(:first-child) { diff --git a/packages/ui/src/components/Input/index.tsx b/packages/ui/src/components/Input/index.tsx index ef7a350f3..5155e5e9a 100644 --- a/packages/ui/src/components/Input/index.tsx +++ b/packages/ui/src/components/Input/index.tsx @@ -10,6 +10,7 @@ export type Props = HTMLProps & { className?: string; error?: ErrorType; onClear?: () => void; + errorStyling?: boolean; }; const Input = ({ @@ -17,6 +18,7 @@ const Input = ({ type = 'text', value, error, + errorStyling = true, onFocus, onBlur, onClear, @@ -27,7 +29,11 @@ const Input = ({ return (
= useCallback(({ target }) => { - target.select(); - }, []); - const onPasteHandler: ClipboardEventHandler = useCallback( (event) => { if (!(event.target instanceof HTMLInputElement)) { @@ -206,7 +197,6 @@ const Passcode = ({ name, className, value, length = defaultLength, error, onCha onPaste={onPasteHandler} onInput={onInputHandler} onKeyDown={onKeyDownHandler} - onFocus={onFocusHandler} /> ))}
diff --git a/packages/ui/src/containers/CreateAccount/index.module.scss b/packages/ui/src/containers/CreateAccount/index.module.scss index b85b96cf9..b471e216b 100644 --- a/packages/ui/src/containers/CreateAccount/index.module.scss +++ b/packages/ui/src/containers/CreateAccount/index.module.scss @@ -13,10 +13,6 @@ margin-bottom: _.unit(4); } - .confirmPassword > * { - border: _.border(); - } - .terms { margin: _.unit(8) 0 _.unit(4); } diff --git a/packages/ui/src/containers/CreateAccount/index.tsx b/packages/ui/src/containers/CreateAccount/index.tsx index 3db9a01e6..43d0c58cb 100644 --- a/packages/ui/src/containers/CreateAccount/index.tsx +++ b/packages/ui/src/containers/CreateAccount/index.tsx @@ -100,7 +100,7 @@ const CreateAccount = ({ className }: Props) => { }} /> { {...fieldRegister('confirmPassword', (confirmPassword) => confirmPasswordValidation(fieldValue.password, confirmPassword) )} + errorStyling={false} onClear={() => { setFieldValue((state) => ({ ...state, confirmPassword: '' })); }} diff --git a/packages/ui/src/containers/SignInMethodsLink/index.module.scss b/packages/ui/src/containers/SignInMethodsLink/index.module.scss index 817399fcb..1175c9629 100644 --- a/packages/ui/src/containers/SignInMethodsLink/index.module.scss +++ b/packages/ui/src/containers/SignInMethodsLink/index.module.scss @@ -3,6 +3,10 @@ .textLink { text-align: center; + + .signInMethodLink { + font-size: inherit; + } } .methodsLinkList { diff --git a/packages/ui/src/pages/Callback/index.module.scss b/packages/ui/src/pages/Callback/index.module.scss index 0c522a64b..b4307e2e9 100644 --- a/packages/ui/src/pages/Callback/index.module.scss +++ b/packages/ui/src/pages/Callback/index.module.scss @@ -3,6 +3,8 @@ .wrapper { @include _.page-wrapper; + position: absolute; + inset: 0; } .connector { @@ -13,6 +15,11 @@ margin-bottom: _.unit(6); } +.placeHolder { + flex: 1; +} + .button { @include _.container-width; + margin-bottom: _.unit(4); } diff --git a/packages/ui/src/pages/Callback/index.tsx b/packages/ui/src/pages/Callback/index.tsx index 454f4ac47..509e29d17 100644 --- a/packages/ui/src/pages/Callback/index.tsx +++ b/packages/ui/src/pages/Callback/index.tsx @@ -41,6 +41,7 @@ const Callback = () => {
{connectorLabel}
loading...
+
diff --git a/packages/ui/src/scss/modal.module.scss b/packages/ui/src/scss/modal.module.scss index 91d574572..9d51b2cfa 100644 --- a/packages/ui/src/scss/modal.module.scss +++ b/packages/ui/src/scss/modal.module.scss @@ -26,6 +26,10 @@ /* stylelint-disable selector-class-pattern */ /* stylelint-disable-next-line selector-pseudo-class-no-unknown */ :global { + .static { + overflow: hidden; + } + .ReactModal__Content[role='popup'] { transform: translateY(100%); transition: transform 0.3s ease-in-out; diff --git a/packages/ui/src/scss/normalized.scss b/packages/ui/src/scss/normalized.scss index 1fd2e7d97..6d7078f2f 100644 --- a/packages/ui/src/scss/normalized.scss +++ b/packages/ui/src/scss/normalized.scss @@ -6,6 +6,11 @@ body { * { box-sizing: border-box; + -webkit-tap-highlight-color: transparent; +} + +a { + text-underline-offset: 2px; } input {