diff --git a/Oqtane.Client/Modules/Admin/Roles/Add.razor b/Oqtane.Client/Modules/Admin/Roles/Add.razor index 905d8061..6eb6802a 100644 --- a/Oqtane.Client/Modules/Admin/Roles/Add.razor +++ b/Oqtane.Client/Modules/Admin/Roles/Add.razor @@ -6,35 +6,28 @@ @inject IStringLocalizer SharedLocalizer
- - - - - - - - - - - - - -
- - - -
- - - -
- - - -
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+

@SharedLocalizer["Cancel"]
diff --git a/Oqtane.Client/Modules/Controls/Label.razor b/Oqtane.Client/Modules/Controls/Label.razor index f237d5f3..4362147d 100644 --- a/Oqtane.Client/Modules/Controls/Label.razor +++ b/Oqtane.Client/Modules/Controls/Label.razor @@ -3,17 +3,16 @@ @if (!string.IsNullOrEmpty(HelpText)) { - @((MarkupString)_openLabel)@ChildContent@((MarkupString)_closeLabel) + + + } else { - @((MarkupString)_openLabel)@ChildContent@((MarkupString)_closeLabel) + } @code { - private string _openLabel = string.Empty; - private string _closeLabel = ""; - [Parameter] public RenderFragment ChildContent { get; set; } @@ -21,39 +20,33 @@ else public string For { get; set; } // optional - the id of the associated input control for accessibility [Parameter] - public string Class { get; set; } // optional - the class for the label ( ie. control-label ) + public string Class { get; set; } // optional - CSS classes [Parameter] public string HelpText { get; set; } // optional - tooltip for this label + private string _spanclass = "app-tooltip"; + private string _labelclass = "form-label"; + private string _helptext = string.Empty; + protected override void OnParametersSet() { base.OnParametersSet(); - if (string.IsNullOrEmpty(Class)) + if (!string.IsNullOrEmpty(HelpText)) { - Class = "form-label"; + _helptext = Localize(nameof(HelpText), HelpText); + _spanclass += (!string.IsNullOrEmpty(Class)) ? " " + Class : ""; } - - _openLabel = "@text; } - - HelpText = Localize(nameof(HelpText), HelpText); } } diff --git a/Oqtane.Server/wwwroot/css/app.css b/Oqtane.Server/wwwroot/css/app.css index 185e5256..c41398ec 100644 --- a/Oqtane.Server/wwwroot/css/app.css +++ b/Oqtane.Server/wwwroot/css/app.css @@ -152,7 +152,7 @@ app { .app-tooltip::before, .app-tooltip::after { - left: 50%; + left: 25%; opacity: 0; position: absolute; z-index: -100;