Skip to content

Commit cadd0cf

Browse files
committed
6.2.0 Fix Styling issues when printing HTML
Fixes #11
1 parent f599095 commit cadd0cf

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

samples/Append.Blazor.Printing.Wasm/Examples/Html.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
</div>
1818
<div class="form-check">
1919
<input type="checkbox" class="form-check-input" id="exampleCheck1">
20-
<label class="form-check-label" for="exampleCheck1">Check me out</label>
20+
<label class="form-check-label text-primary" for="exampleCheck1">Check me out</label>
2121
</div>
2222
</form>
2323

2424
<button @onclick="@(_ => PrintingService.Print("printable-form", PrintType.Html))">
25-
Print Form Without Bootstrap Styling
25+
Print Form
2626
</button>
2727
</Code>
2828
</Example>

samples/Append.Blazor.Printing.Wasm/wwwroot/examples/Html.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
</div>
1818
<div class="form-check">
1919
<input type="checkbox" class="form-check-input" id="exampleCheck1">
20-
<label class="form-check-label" for="exampleCheck1">Check me out</label>
20+
<label class="form-check-label text-primary" for="exampleCheck1">Check me out</label>
2121
</div>
2222
</form>
2323

2424
<button @onclick="@(_ => PrintingService.Print("printable-form", PrintType.Html))">
25-
Print Form Without Bootstrap Styling
25+
Print Form
2626
</button>
2727
</Code>
2828
</Example>

source/Append.Blazor.Printing/Append.Blazor.Printing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
5-
<Version>6.1.0</Version>
5+
<Version>6.2.0</Version>
66
<Authors>Benjamin Vertonghen</Authors>
77
<Company>Append</Company>
88
<Description>Print and Save files in Blazor using the native dialog box using JavaScript Interop.</Description>

source/Append.Blazor.Printing/PrintOptionsAdapter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ internal record PrintOptionsAdapter
1212
public bool ShowModal { get; init; }
1313
public string ModalMessage { get; init; } = "Retrieving Document...";
1414
public bool? Base64 { get; set; }
15+
public string TargetStyles { get; set; } = "['*']";
1516

1617
public PrintOptionsAdapter(PrintOptions options)
1718
{

0 commit comments

Comments
 (0)