diff --git a/src/layouts/components/Homepage/HeroBody.tsx b/src/layouts/components/Homepage/HeroBody.tsx index fe8732b9b..33e664743 100644 --- a/src/layouts/components/Homepage/HeroBody.tsx +++ b/src/layouts/components/Homepage/HeroBody.tsx @@ -182,7 +182,7 @@ const HeroSideSectionLayout = ({ errors, title, subtitle, - size = "50%", + size = "md", alignment = "left", }: HeroSideSectionProps) => { const { onChange } = useEditableContext() @@ -206,7 +206,7 @@ const HeroSideSectionLayout = ({ Section size { + onChange={(nextSectionSize: SectionSize) => { onChange({ target: { id: "section-0-hero-size", @@ -217,11 +217,11 @@ const HeroSideSectionLayout = ({ defaultValue={size} > - + Wide - + Narrow diff --git a/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx b/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx index f1b6b3e93..6b45783a9 100644 --- a/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx +++ b/src/templates/homepage/HeroSection/HeroInfoboxDesktop.tsx @@ -12,6 +12,10 @@ import { EditorHeroDropdownSection } from "types/homepage" import { HeroButton } from "./HeroButton" import { HeroDropdown } from "./HeroDropdown" +const getButtonStyling = (alignment: SectionAlignment = "left") => { + return `hero-alignment-${alignment}` +} + interface HeroInfoboxDesktopProps { alignment: SectionAlignment @@ -119,7 +123,7 @@ export const HeroInfoboxDesktop = ({ button && (