Skip to content

Commit 96da6e2

Browse files
authored
Fix grid-column-start on column directive
Add a missing `-` in the classes generated from the `offsets` property so that they will correctly match the classes defined in the theme's css and apply the `grid-column-start` css property.
1 parent 46cb2e6 commit 96da6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grid/column.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class ColumnDirective implements OnInit, OnChanges, OnDestroy {
129129
});
130130

131131
Object.keys(this.offsets).forEach(key => {
132-
this._columnClasses.push(`cds--${key}:col-start${this.offsets[key] + 1}`);
132+
this._columnClasses.push(`cds--${key}:col-start-${this.offsets[key] + 1}`);
133133
});
134134
} else {
135135
// Set column classes for flex grid

0 commit comments

Comments
 (0)