diff --git a/ghost/portal/src/components/Frame.styles.js b/ghost/portal/src/components/Frame.styles.js index 0815febb18..a20f962278 100644 --- a/ghost/portal/src/components/Frame.styles.js +++ b/ghost/portal/src/components/Frame.styles.js @@ -155,7 +155,7 @@ export const GlobalStyles = ` text-align: center; } - .gh-portal-setting-heading { + .gh-portal-input-label { font-size: 1.3rem; margin-bottom: 2px; font-weight: 500; diff --git a/ghost/portal/src/components/common/InputField.js b/ghost/portal/src/components/common/InputField.js index 6ae17a4a5a..7be2ac7c0e 100644 --- a/ghost/portal/src/components/common/InputField.js +++ b/ghost/portal/src/components/common/InputField.js @@ -19,7 +19,11 @@ export const InputFieldStyles = ` transition: all 0.25s ease-in-out; } - .gh-portal-input:focus { + .gh-portal-input-label.hidden { + display: none; + } + + .gh-portal-input-label:focus { border: none; box-shadow: 0px 0px 0px 1px #c5c5c5 , 0px 2px 4px 0px rgba(0, 0, 0, 0.07), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.05); } @@ -29,11 +33,12 @@ export const InputFieldStyles = ` } `; -function InputField({name, id, label, type, value, placeholder, disabled, onChange, brandColor}) { +function InputField({name, id, label, hideLabel, type, value, placeholder, disabled, onChange, brandColor}) { id = id || `input-${name}`; + const labelClasses = hideLabel ? 'gh-portal-input-label hidden' : 'gh-portal-input-label'; return ( <> - + Plan + ); } diff --git a/ghost/portal/src/components/pages/AccountProfilePage.js b/ghost/portal/src/components/pages/AccountProfilePage.js index 705b25fdc4..c650842ffe 100644 --- a/ghost/portal/src/components/pages/AccountProfilePage.js +++ b/ghost/portal/src/components/pages/AccountProfilePage.js @@ -169,7 +169,7 @@ export default class AccountProfilePage extends React.Component { return (
-

Newsletter

+

Newsletter

{label}
diff --git a/ghost/portal/src/components/pages/SigninPage.js b/ghost/portal/src/components/pages/SigninPage.js index bd8e86b443..dfdbf275cc 100644 --- a/ghost/portal/src/components/pages/SigninPage.js +++ b/ghost/portal/src/components/pages/SigninPage.js @@ -65,7 +65,8 @@ export default class SigninPage extends React.Component { const field = fields[fieldName]; return (