Skip to content

Commit c205749

Browse files
crisbetojelbourn
authored andcommitted
fix(tree): invalid style declaration during server-side rendering (#10326)
Switches to camel-cased properties when declaring the inline styles for the tree, in order to avoid invalid style declarations when they get passed through Domino. Relates to #10131.
1 parent 11a3fe1 commit c205749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/tree/padding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class CdkTreeNodePadding<T> implements OnDestroy {
7070

7171
_setPadding() {
7272
const padding = this._paddingIndent();
73-
const paddingProp = this._dir && this._dir.value === 'rtl' ? 'padding-right' : 'padding-left';
73+
const paddingProp = this._dir && this._dir.value === 'rtl' ? 'paddingRight' : 'paddingLeft';
7474

7575
this._renderer.setStyle(this._element.nativeElement, paddingProp, padding);
7676
}

0 commit comments

Comments
 (0)