Skip to content

Commit 8fd9d7d

Browse files
mprobstmmalerba
authored andcommitted
refactor: fix ripple-renderer in TS3.7 (#17927)
Another DOM style nullable issue.
1 parent 191357a commit 8fd9d7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/material/core/ripple/ripple-renderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class RippleRenderer {
147147
ripple.style.width = `${radius * 2}px`;
148148

149149
// If the color is not set, the default CSS color will be used.
150-
ripple.style.backgroundColor = config.color || null;
150+
// TODO(TS3.7): Type 'string | null' is not assignable to type 'string'.
151+
ripple.style.backgroundColor = (config.color || null) as any;
151152
ripple.style.transitionDuration = `${duration}ms`;
152153

153154
this._containerElement.appendChild(ripple);

0 commit comments

Comments
 (0)