From 7021e186fe871f1c65da5c3b47ab03948d2c0ed1 Mon Sep 17 00:00:00 2001 From: Mirlan Date: Thu, 7 Oct 2021 12:38:53 +0600 Subject: [PATCH] Ott 1766 facr header styles (#522) * fix(1766): added facr home header page header styles * fix(1766): shadow around search only when focused --- src/config/clients/facr.tsx | 9 +++++++++ src/config/clients/types.tsx | 5 +++++ src/features/Common/Input/index.tsx | 3 --- src/features/Common/Input/styled.tsx | 13 ++++--------- src/features/ProfileHeader/index.tsx | 5 +---- src/features/ProfileHeader/styled.tsx | 20 ++++++++++++-------- src/features/Search/index.tsx | 7 +------ src/features/Search/styled.tsx | 2 ++ 8 files changed, 34 insertions(+), 30 deletions(-) diff --git a/src/config/clients/facr.tsx b/src/config/clients/facr.tsx index 52c9c902..db98b87a 100644 --- a/src/config/clients/facr.tsx +++ b/src/config/clients/facr.tsx @@ -1,3 +1,5 @@ +import { css } from 'styled-components/macro' + import type { ClientConfig } from './types' import { PROCEDURES } from '../procedures' @@ -22,6 +24,13 @@ export const facr: ClientConfig = { }, styles: { background: '', + homePageHeader: css` + background: linear-gradient( + 45.42deg, + #00257A 51.04%, + #000000 80.83%), + #000000; + `, logo: 'facr-logo.svg', logoHeight: 3.35, logoWidth: 2.45, diff --git a/src/config/clients/types.tsx b/src/config/clients/types.tsx index e79de112..ead1f145 100644 --- a/src/config/clients/types.tsx +++ b/src/config/clients/types.tsx @@ -1,8 +1,12 @@ +import { css } from 'styled-components/macro' + import type { Languages } from 'config/languages' type ProcedureName = string type RequestParameters = any +type StyledCss = ReturnType + export type ClientConfig = { auth: { clientId: string, @@ -13,6 +17,7 @@ export type ClientConfig = { requests?: Record, styles: { background?: string, + homePageHeader?: StyledCss, logo: string, logoHeight?: number, logoWidth?: number, diff --git a/src/features/Common/Input/index.tsx b/src/features/Common/Input/index.tsx index e54d5404..0336305d 100644 --- a/src/features/Common/Input/index.tsx +++ b/src/features/Common/Input/index.tsx @@ -27,7 +27,6 @@ type Props = { labelLexic?: string, labelWidth?: number, maxLength?: number, - noShadow?: boolean, onBlur?: (event: FocusEvent) => void, onChange?: (event: ChangeEvent) => void, onFocus?: (event: FocusEvent) => void, @@ -51,7 +50,6 @@ export const Input = ({ labelLexic, labelWidth, maxLength, - noShadow, onBlur, onChange, onFocus, @@ -72,7 +70,6 @@ export const Input = ({ wrapperWidth={wrapperWidth} hasRightIcon={editIcon} error={error} - noShadow={noShadow} >