Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Core/Utilities/StyleBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public struct StyleBuilder
/// </summary>
/// <param name="prop"></param>
/// <param name="value"></param>
public StyleBuilder(string prop, string value) => stringBuffer = $"{prop}:{value};";
public StyleBuilder(string prop, string value) => stringBuffer = $"{prop}: {value};";

/// <summary>
/// Adds a conditional in-line style to the builder with space separator and closing semicolon.
/// </summary>
/// <param name="style"></param>
public StyleBuilder AddStyle(string? style) => !string.IsNullOrWhiteSpace(style) ? AddRaw($"{style};") : this;
public StyleBuilder AddStyle(string? style) => !string.IsNullOrWhiteSpace(style) ? AddRaw($"{style}; ") : this;

/// <summary>
/// Adds a raw string to the builder that will be concatenated with the next style or value added to the builder.
Expand All @@ -52,7 +52,7 @@ private StyleBuilder AddRaw(string? style)
/// <param name="prop"></param>
/// <param name="value">Style to add</param>
/// <returns>StyleBuilder</returns>
public StyleBuilder AddStyle(string prop, string? value) => AddRaw($"{prop}:{value};");
public StyleBuilder AddStyle(string prop, string? value) => AddRaw($"{prop}: {value}; ");

/// <summary>
/// Adds a conditional in-line style to the builder with space separator and closing semicolon..
Expand Down