Browse Source

Use `btn-outline-secondary` for Cancel buttons

Cancel is a button that appears together with Save and it is not primary.
pull/23246/head
Super 7 months ago
committed by GitHub
parent
commit
7414aacdfd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Modal/AbpModalFooterTagHelperService.cs

2
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Modal/AbpModalFooterTagHelperService.cs

@ -96,7 +96,7 @@ public class AbpModalFooterTagHelperService : AbpTagHelperService<AbpModalFooter
element.Attributes.Add("type", "button");
element.Attributes.Add("data-bs-dismiss", "modal");
element.AddCssClass("btn");
element.AddCssClass("btn-outline-primary");
element.AddCssClass("btn-outline-secondary");
element.InnerHtml.Append(_localizer["Cancel"]);
return element.ToHtmlString();

Loading…
Cancel
Save