diff --git a/src/core/client/account/test/__snapshots__/resetPassword.spec.tsx.snap b/src/core/client/account/test/__snapshots__/resetPassword.spec.tsx.snap index e040fa260..6befa3d10 100644 --- a/src/core/client/account/test/__snapshots__/resetPassword.spec.tsx.snap +++ b/src/core/client/account/test/__snapshots__/resetPassword.spec.tsx.snap @@ -52,7 +52,7 @@ Make sure it is unique and be sure to keep it secure. Password

Must be at least 8 characters

diff --git a/src/core/client/admin/routes/Configure/Header.css b/src/core/client/admin/routes/Configure/Header.css index 625823009..6459c5f15 100644 --- a/src/core/client/admin/routes/Configure/Header.css +++ b/src/core/client/admin/routes/Configure/Header.css @@ -1,7 +1,11 @@ .root { - padding-bottom: calc(0.5 * var(--mini-unit)); - border-bottom: 1px solid var(--palette-text-primary); + border-style: none; + border-radius: 1px; + background: var(--palette-text-primary); + color: var(--palette-text-light); + padding: var(--spacing-2); margin-bottom: calc(1.5 * var(--mini-unit)); display: block; - width: 100%; + width: calc(100% - 2 * var(--spacing-2)); + font-family: var(--font-family-sans-serif); } diff --git a/src/core/client/admin/routes/Configure/Header.tsx b/src/core/client/admin/routes/Configure/Header.tsx index efb12dd71..ef5f90167 100644 --- a/src/core/client/admin/routes/Configure/Header.tsx +++ b/src/core/client/admin/routes/Configure/Header.tsx @@ -10,7 +10,7 @@ type Props = PropTypesOf; const Header: FunctionComponent = ({ children, className, ...rest }) => ( diff --git a/src/core/client/admin/routes/Configure/SectionContent.css b/src/core/client/admin/routes/Configure/SectionContent.css new file mode 100644 index 000000000..4ec171a81 --- /dev/null +++ b/src/core/client/admin/routes/Configure/SectionContent.css @@ -0,0 +1,4 @@ +.sectionContent { + padding-left: var(--spacing-2); + padding-right: var(--spacing-2); +} diff --git a/src/core/client/admin/routes/Configure/SectionContent.tsx b/src/core/client/admin/routes/Configure/SectionContent.tsx new file mode 100644 index 000000000..64845d6af --- /dev/null +++ b/src/core/client/admin/routes/Configure/SectionContent.tsx @@ -0,0 +1,19 @@ +import React, { FunctionComponent } from "react"; + +import { HorizontalGutter } from "coral-ui/components"; + +import styles from "./SectionContent.css"; + +interface Props { + children?: React.ReactNode; +} + +const SectionContent: FunctionComponent = ({ children }) => { + return ( + + {children} + + ); +}; + +export default SectionContent; diff --git a/src/core/client/admin/routes/Configure/__snapshots__/Header.spec.tsx.snap b/src/core/client/admin/routes/Configure/__snapshots__/Header.spec.tsx.snap index 21a12c578..8b1daa60a 100644 --- a/src/core/client/admin/routes/Configure/__snapshots__/Header.spec.tsx.snap +++ b/src/core/client/admin/routes/Configure/__snapshots__/Header.spec.tsx.snap @@ -3,7 +3,7 @@ exports[`renders correctly 1`] = ` child diff --git a/src/core/client/admin/routes/Configure/sections/Advanced/CommentStreamLiveUpdates.tsx b/src/core/client/admin/routes/Configure/sections/Advanced/CommentStreamLiveUpdates.tsx index a15d7c1a6..a3556bf25 100644 --- a/src/core/client/admin/routes/Configure/sections/Advanced/CommentStreamLiveUpdates.tsx +++ b/src/core/client/admin/routes/Configure/sections/Advanced/CommentStreamLiveUpdates.tsx @@ -5,6 +5,7 @@ import { FormField, HorizontalGutter, Typography } from "coral-ui/components"; import Header from "../../Header"; import OnOffField from "../../OnOffField"; +import SectionContent from "../../SectionContent"; interface Props { disabled: boolean; @@ -15,19 +16,21 @@ const CommentStreamLiveUpdates: FunctionComponent = ({ disabled }) => (
}> - Comment Stream Live Updates + Comment stream live updates
- } - > - - When enabled, there will be real-time loading and updating of comments - as new comments and replies are published - - - + + } + > + + When enabled, there will be real-time loading and updating of + comments as new comments and replies are published + + + +
); diff --git a/src/core/client/admin/routes/Configure/sections/Advanced/CustomCSSConfig.tsx b/src/core/client/admin/routes/Configure/sections/Advanced/CustomCSSConfig.tsx index 52f46a478..52fed6edb 100644 --- a/src/core/client/admin/routes/Configure/sections/Advanced/CustomCSSConfig.tsx +++ b/src/core/client/admin/routes/Configure/sections/Advanced/CustomCSSConfig.tsx @@ -15,6 +15,7 @@ import { } from "coral-ui/components"; import Header from "../../Header"; +import SectionContent from "../../SectionContent"; interface Props { disabled: boolean; @@ -28,32 +29,38 @@ const CustomCSSConfig: FunctionComponent = ({ disabled }) => ( Custom CSS - } - > - - URL of a CSS stylesheet that will override default Embed Stream - styles. Can be internal or external. - - - - {({ input, meta }) => ( - <> - - - - )} - + + } + > + + URL of a CSS stylesheet that will override default Embed Stream + styles. Can be internal or external. + + + + {({ input, meta }) => ( + <> + + + + )} + + ); diff --git a/src/core/client/admin/routes/Configure/sections/Advanced/EmbedCode.tsx b/src/core/client/admin/routes/Configure/sections/Advanced/EmbedCode.tsx index 99b2d78b0..4a49d5c0d 100644 --- a/src/core/client/admin/routes/Configure/sections/Advanced/EmbedCode.tsx +++ b/src/core/client/admin/routes/Configure/sections/Advanced/EmbedCode.tsx @@ -8,6 +8,7 @@ import { GetMessage, withGetMessage } from "coral-framework/lib/i18n"; import { HorizontalGutter, Typography } from "coral-ui/components"; import Header from "../../Header"; +import SectionContent from "../../SectionContent"; import styles from "./EmbedCode.css"; @@ -78,23 +79,25 @@ const EmbedCode: FunctionComponent = ({ staticURI, getMessage }) => { return ( -
Embed Code
+
Embed code
- - - Copy and paste the code below into your CMS to embed Coral comment - streams in each of your site’s stories. - - -