Skip to content

Commit 0cd81c1

Browse files
committed
fix(row): row-cols-n for xs="n"
1 parent 1b9c476 commit 0cd81c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/coreui-angular/src/lib/grid/row.directive.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export class RowDirective implements IRow {
4646

4747
const classes: any = {
4848
row: true,
49-
[`row-cols-${cols}`]: !!cols,
49+
[`row-cols-${cols}`]: !!cols
5050
};
5151

5252
Object.keys(BreakpointInfix).forEach(breakpoint => {
5353
// @ts-ignore
5454
const value: any = this[breakpoint];
5555
if ((typeof value === 'number') || (typeof value === 'string')) {
56-
const infix: string = breakpoint === 'xs' ? '' : breakpoint;
57-
classes[`row-cols-${infix}-${value}`] = !!value;
56+
const infix: string = breakpoint === 'xs' ? '' : `-${breakpoint}`;
57+
classes[`row-cols${infix}-${value}`] = !!value;
5858
}
5959
});
6060

0 commit comments

Comments
 (0)