add inherit to action button
b650d6f1
Simon Liebers
committed
succeeded
2 changed files
ButtonAction.razor
/WPE.App.Shared.BaseComponents/Pages/Buttons/ButtonAction.razor-1+5
/WPE.App.Shared.BaseComponents/Pages/Buttons/ButtonAction.razor
Add comment 1 Plus  @using Infsoft.WPE.App.Shared.BaseComponents.Models.General
Add comment 1 2 @using Infsoft.WPE.App.Shared.BaseComponents.Models.Text;
Add comment 2 3 @using Infsoft.WPE.App.Shared.BaseComponents.Pages.Animations
Add comment 3 4 @using Infsoft.WPE.App.Shared.BaseComponents.Pages.Text
Add comment 4 5
Add comment 6 Plus  @inherits StyledComponent
Add comment 7 Plus  
Add comment 5 8 @{
Add comment 6 9 string btnText = Pending ? PendingText : Text;
Add comment 7 10 btnText = Pending && MouseOverButton ? CancelText : btnText;
Add comment 11 14 btnClass += MouseOverButton ? " mouseover" : "";
Add comment 12 15 btnClass += FixedWidth ? " fixed-width" : "";
Add comment 13 16 btnClass += Selected ? " selected" : "";
Add comment 17 Plus   btnClass += $" {Class}";
Add comment 14 18 }
Add comment 15 19
Add comment 16 20 @* Figma Component: button/action *@
Add comment 17 Minus  <div class="@btnClass" @onclick="Click" @onmouseenter="() => ToggleMouseOverButton(true)" @onmouseleave="() => ToggleMouseOverButton(false)">
Add comment 21 Plus  <div class="@btnClass" Style="@Style" @onclick="Click" @onmouseenter="() => ToggleMouseOverButton(true)" @onmouseleave="() => ToggleMouseOverButton(false)">
Add comment 18 22 @if (Pending)
Add comment 19 23 {
Add comment 20 24 <BubbleLoading />
WPE.App.Shared.BaseComponents.csproj
/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj
/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj