Skip to content

Commit

Permalink
Fix theming of card image top radius (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki authored Jan 20, 2022
1 parent 6475ed6 commit 096bb8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Blazorise.Bootstrap/BootstrapThemeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ protected override void GenerateCardStyles( StringBuilder sb, Theme theme, Theme
.AppendLine( "}" );

if ( !string.IsNullOrEmpty( options?.ImageTopRadius ) )
sb.Append( ".card-image-top" ).Append( "{" )
sb.Append( ".card-img-top" ).Append( "{" )
.Append( $"border-top-left-radius: {options.ImageTopRadius};" )
.Append( $"border-top-right-radius: {options.ImageTopRadius};" )
.AppendLine( "}" );
Expand Down
2 changes: 1 addition & 1 deletion Source/Blazorise.Bootstrap5/BootstrapThemeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ protected override void GenerateCardStyles( StringBuilder sb, Theme theme, Theme
.AppendLine( "}" );

if ( !string.IsNullOrEmpty( options?.ImageTopRadius ) )
sb.Append( ".card-image-top" ).Append( "{" )
sb.Append( ".card-img-top" ).Append( "{" )
.Append( $"border-top-left-radius: {options.ImageTopRadius};" )
.Append( $"border-top-right-radius: {options.ImageTopRadius};" )
.AppendLine( "}" );
Expand Down

0 comments on commit 096bb8d

Please sign in to comment.