We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9c476 commit 0cd81c1Copy full SHA for 0cd81c1
projects/coreui-angular/src/lib/grid/row.directive.ts
@@ -46,15 +46,15 @@ export class RowDirective implements IRow {
46
47
const classes: any = {
48
row: true,
49
- [`row-cols-${cols}`]: !!cols,
+ [`row-cols-${cols}`]: !!cols
50
};
51
52
Object.keys(BreakpointInfix).forEach(breakpoint => {
53
// @ts-ignore
54
const value: any = this[breakpoint];
55
if ((typeof value === 'number') || (typeof value === 'string')) {
56
- const infix: string = breakpoint === 'xs' ? '' : breakpoint;
57
- classes[`row-cols-${infix}-${value}`] = !!value;
+ const infix: string = breakpoint === 'xs' ? '' : `-${breakpoint}`;
+ classes[`row-cols${infix}-${value}`] = !!value;
58
}
59
});
60
0 commit comments