Skip to content

cdsCol offsets not generating the correct CSS class #3207

@silk-bahamut

Description

@silk-bahamut

When using the offsets attribute in cdsCol, the generated class misses the -

<div cdsCol [columnNumbers]="{ sm: 2, md: 3, lg: 3 }" [offsets]="{ sm: 2, md: 3, lg: 3 }">
   <h6>Type</h6>
</div>
<div _ngcontent-ng-c2802659266="" cdscol="" ng-reflect-column-numbers="[object Object]" ng-reflect-offsets="[object Object]" class="cds--css-grid-column cds--lg:col-span-3 cds--lg:col-start4 cds--md:col-span-3 cds--md:col-start4 cds--sm:col-span-2 cds--sm:col-start3">
  <h6 _ngcontent-ng-c2802659266="">Type</h6>
</div>

so here we have cds--sm:col-start3 instead of cds--sm:col-start-3

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