Skip to content

Commit d4d68a8

Browse files
committed
Inherit fluent component base to derived component
1 parent c83eb2b commit d4d68a8

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/LabelWithTooltip.razor

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<FluentLabel Typo="Typography.Body" Style=@Style>
1+
@inherits FluentComponentBase
2+
<FluentLabel Typo="Typography.Body" Style=@Style>
23
@LabelText
34

45
@* Tooltip Image *@
@@ -13,18 +14,12 @@
1314
</FluentLabel>
1415

1516
@code {
16-
[Parameter, EditorRequired]
17-
public string Id { get; set; } = string.Empty;
18-
1917
[Parameter, EditorRequired]
2018
public string LabelText { get; set; } = string.Empty;
2119

2220
[Parameter, EditorRequired]
2321
public string TooltipText { get; set; } = string.Empty;
2422

25-
[Parameter]
26-
public string? Style { get; set; } = null;
27-
2823
private string anchorId = string.Empty;
2924

3025
protected override void OnParametersSet()

src/AzureOpenAIProxy.PlaygroundApp/Components/UI/SliderWithTextfield.razor

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@typeparam TValue where TValue : System.Numerics.INumber<TValue>
1+
@inherits FluentComponentBase
2+
@typeparam TValue where TValue : System.Numerics.INumber<TValue>
23

34
<FluentStack Orientation="Orientation.Horizontal" Style=@Style>
45

@@ -7,7 +8,7 @@
78
Style="width:88%;padding-top:15px;" />
89

910
<FluentTextField @bind-Value=textFieldValue @bind-Value:after=AfterTextFieldChange
10-
Style="width:12%;padding-left:0px" />
11+
Style="width:12%;padding-left:0px;font-size:9px" />
1112

1213
</FluentStack>
1314

@@ -37,9 +38,6 @@
3738
[Parameter]
3839
public EventCallback OnChangeEvent { get; set; }
3940

40-
[Parameter]
41-
public string? Style { get; set; } = null;
42-
4341
public string? textFieldValue { get; set; }
4442

4543
private bool hasNoError = true;

0 commit comments

Comments
 (0)