Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microsoft/fluentui-blazor in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
vnbaaij committed Apr 12, 2024
2 parents 284caae + fb63351 commit f023d90
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@namespace FluentUI.Demo.Shared

<input type="text" @bind-Value="@Highlight" @bind-Value:event="oninput" />
<FluentTextField @bind-Value="@Highlight" Immediate="true" />
<br />
<br />

Expand All @@ -11,4 +11,4 @@
@code
{
public string Highlight = "";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
text-align: center;
font-weight: bold;
font-size: 14px;
color: black;
cursor: pointer;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h4>Stroke and Color</h4>

<FluentSelect Label="Width" Items="@(new [] { Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Small, Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Normal, Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Large })" @bind-SelectedOption="@Stroke" Width="60px" />
<FluentSelect Label="Width" Items="@(new [] { Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Small, Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Normal, Microsoft.FluentUI.AspNetCore.Components.ProgressStroke.Large })" @bind-SelectedOption="@Stroke" Width="100px" />
<FluentCheckbox Label="Indeterminate" @bind-Value="@Indeterminate" />
<FluentSelect Label="Color" Items="@(Enum.GetValues<OfficeColor>())" @bind-SelectedOption="@Color" Width="100px" Height="200px" />
<FluentSelect Label="Color" Items="@(Enum.GetValues<OfficeColor>())" @bind-SelectedOption="@Color" Width="120px" Height="200px" />
<FluentSlider Min="0" Max="100" Step="5" @bind-Value="@Percentage" Style="max-width: 200px; margin: 20px 0px;" Disabled="@Indeterminate" />

<FluentStack Style="margin: 30px;">
Expand All @@ -20,4 +20,4 @@
int Percentage = 30;
bool Indeterminate = false;
OfficeColor Color = OfficeColor.Default;
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h4>Stroke and Color</h4>

<FluentSelect Label="Width" Items="@(new [] { ProgressStroke.Small, ProgressStroke.Normal, ProgressStroke.Large })" @bind-SelectedOption="@Stroke" Width="160px" />
<FluentSelect Label="Width" Items="@(new [] { ProgressStroke.Small, ProgressStroke.Normal, ProgressStroke.Large })" @bind-SelectedOption="@Stroke" Width="100px" />
<FluentCheckbox Label="Indeterminate" @bind-Value="@Indeterminate" />
<FluentSelect Label="Color" Items="@(Enum.GetValues<OfficeColor>())" @bind-SelectedOption="@Color" Width="160px" Height="200px" />
<FluentSelect Label="Color" Items="@(Enum.GetValues<OfficeColor>())" @bind-SelectedOption="@Color" Width="120px" Height="200px" />
<FluentSlider Min="0" Max="100" Step="5" @bind-Value="@Percentage" Style="max-width: 200px; margin: 20px 0px;" Disabled="@Indeterminate" />

<FluentStack Style="margin: 30px;">
Expand Down
22 changes: 12 additions & 10 deletions examples/Demo/Shared/Shared/DemoMainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@
<SiteSettings />
</div>

<FluentProfileMenu Image="@DataSource.ImageFaces[3]"
Status="@PresenceStatus.Available"
TopCorner="true"
Initials="OS"
FullName="Olivia Smith"
EMail="sam@my-company.com"
Style="min-width: 330px;">
<HeaderTemplate><FluentLabel Typo="Typography.Body">My Company Corp</FluentLabel></HeaderTemplate>
<FooterTemplate></FooterTemplate>
</FluentProfileMenu>
<div class="profile">
<FluentProfileMenu Image="@DataSource.ImageFaces[3]"
Status="@PresenceStatus.Available"
TopCorner="true"
Initials="OS"
FullName="Olivia Smith"
EMail="sam@my-company.com"
Style="min-width: 330px;">
<HeaderTemplate><FluentLabel Typo="Typography.Body">My Company Corp</FluentLabel></HeaderTemplate>
<FooterTemplate></FooterTemplate>
</FluentProfileMenu>
</div>
</FluentHeader>

<FluentStack Class="body-stack" Orientation="Orientation.Horizontal" Width="100%" HorizontalGap="0">
Expand Down
7 changes: 6 additions & 1 deletion examples/Demo/Shared/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ body {
}

.siteheader .settings {
padding-right: 6px;
display: flex;
align-items: center;
margin-left: 0;
margin-right: 10px;
}

.siteheader .profile {
padding-right: 16px;
margin-left: 0;
margin-right: 10px;
}

[dir="rtl"] .siteheader .settings {
padding: 0 0 0 6px;
margin-left: 10px;
Expand Down

0 comments on commit f023d90

Please sign in to comment.