Skip to content

Commit c6725c5

Browse files
Remove bypassSecurityTrustStyle call (swimlane#1561)
1 parent da6a19c commit c6725c5

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

package-lock.json

Lines changed: 34 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/swimlane/ngx-charts/src/lib/common/legend/scale-legend.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class ScaleLegendComponent implements OnChanges {
3737
ngOnChanges(changes: SimpleChanges): void {
3838
const gradientValues = this.gradientString(this.colors.range(), this.colors.domain());
3939
const direction = this.horizontal ? 'right' : 'bottom';
40-
this.gradient = this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${direction}, ${gradientValues})`);
40+
this.gradient = `linear-gradient(to ${direction}, ${gradientValues})`;
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)