Skip to content

Commit 1ff7bb0

Browse files
committed
fix: class format when using column directive's offsets
1 parent f83a70f commit 1ff7bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grid/column.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class ColumnDirective implements OnInit, OnChanges, OnDestroy {
114114
* These objects are used to position the column
115115
*/
116116
if (this.columnNumbers[key]["start"]) {
117-
// col-start is simular equivalent of flex offset
117+
// col-start is similar equivalent of flex offset
118118
this._columnClasses.push(`cds--${key}:col-start-${this.columnNumbers[key].start}`);
119119
}
120120
if (this.columnNumbers[key]["end"]) {
@@ -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)