Skip to content

Commit

Permalink
Adding default style and class for canvas for custom styling wulfsolt…
Browse files Browse the repository at this point in the history
  • Loading branch information
almothafar committed Jan 10, 2021
1 parent efbd049 commit 6f6d89f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
:host {
// This should be solving issue with open area that don't have signature pad canvas
background: antiquewhite;
display: flex;
align-items: center;
justify-content: center;

.signature-pad-canvas {
border: 1px solid gray;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export interface NgSignaturePadOptions extends Options {
}

@Component({
template: '<canvas></canvas>',
template: '<canvas class="signature-pad-canvas"></canvas>',
selector: 'signature-pad',
styleUrls: ['./angular-signature-pad.component.scss'],
})
export class SignaturePadComponent implements AfterContentInit, OnDestroy {
@Input() public options: NgSignaturePadOptions;
Expand Down

0 comments on commit 6f6d89f

Please sign in to comment.