Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial attempt at help text for SMTP saves #25446

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions frontend/pages/admin/OrgSettingsPage/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
}

.app-config-form {
&__smtp-help-text {
display: flex;
gap: $pad-small;
align-items: center;
}

&__smtp-help-text p {
padding-top: 1rem;
padding-left: 0.5rem;
}

&__section {
@include clearfix;
animation: fade-in 200ms ease-out;
Expand Down
24 changes: 15 additions & 9 deletions frontend/pages/admin/OrgSettingsPage/cards/Smtp/Smtp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,21 @@ const Smtp = ({
}
/>
{renderSmtpSection()}
<Button
type="submit"
variant="brand"
disabled={Object.keys(formErrors).length > 0}
className="button-wrap"
isLoading={isUpdatingSettings}
>
Save
</Button>
<div className={`${baseClass}__smtp-help-text`}>
<Button
type="submit"
variant="brand"
disabled={Object.keys(formErrors).length > 0}
className="button-wrap"
isLoading={isUpdatingSettings}
>
Save
</Button>
<p>
We&apos;ll attempt to send a text email when saving changes to SMTP
settings.
</p>
</div>
</form>
);
};
Expand Down
Loading