Skip to content

Breakpoint styles are missing from LayoutSection styles in v13.0.0 #647

@parttee

Description

@parttee

Hi!

I noticed that after upgrading from 12.1.0 to 13.0.0 hubspotClient.cms.pages.sitePagesApi.getPage() no longer returns breakpoint styles including margin and padding for layout sections.

Version 12.x returns breakpointStyles in styles objects in layoutSections.dnd_area.rowMetaData array like this

{
  // ...
  layoutSections: {
    dnd_area: {
      // ...
      label: 'Main section',
      name: 'dnd_area',
      rowMetaData: [
        {
          cssClass: 'dnd-section',
          styles: {
            backgroundImage: {
              backgroundPosition: 'TOP_CENTER',
              backgroundSize: 'cover',
              imageUrl: '.....'
            },
            breakpointStyles: {
              default: {
                hidden: false,
                padding: {
                  bottom: { units: 'px', value: 25 },
                  left: { units: 'px', value: 0 },
                  right: { units: 'px', value: 0 },
                  top: { units: 'px', value: 20 }
                }
              }
            },
            forceFullWidthSection: true
          }
        }
     // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions