Skip to content

Commit 1899238

Browse files
authored
Prep release 3.2.1 (#883)
* fix: chinese abbreviated day name in FluentCalendar (#834) * Minor documentation corrections (#837) * Fix #836 * fix NavMenuLink width * Rename solution file * FluentMenu: move overlay into anchored section code * Update version on index page * Update Menu example * Add some (😉) more tests * [Unit Tests] Add Unit Tests in .razor files (#844) * Fix gitignore * Add FluentBadgeTests.razor * Fix #845 Exception with NavMenuLink * Fix #841 (#842) * Hide collapse button on demo site menu and remove some commented code * Fix #851 * Fix #852 * Update Fluent UI System Icons to 1.1.220 (#854) * Small ToC script optimization * Use latest SDKs * Make demos better when opening in light/dark mode * Fix initial theme switch setting * Fix: Add '@' to keyframe for fade-out animation (#855) * MessageBar: fix fadein effect * [Accessibility] Fix some FluentButton and FluentNav aria attributes (#853) * Fix FluentButton aria-label based on Title * Fix NavMenu aria * Fix Button Titles * Fix unit Tests * Add examples and documentation for the Persona component. (#843) * Fix the Persona samples to use "@DataSource.SamplePicture" instead of using external resources. * [Autocomplete] Update some Accessibility issues (#866) * Update Autocomplete Accessibility items * Fix Enter key when popup is closed * Update Previous and Next titles (and Unit Tests) * [FluentGrid] Add FluentGridItem with no breakpoints (#862) * Add FluentGridItem with no breakpoints * Update FluentValidationSummary.razor * Fix #865 * docs: Update sample InputFileDefault.razor (#867) * Update InputFileDefault.razor * Update InputFileByCode.razor * Update the documentation: inverse Api and Example sections * fix: Implement DesignToken.WithDefault and use in Demo site (#869) * Add 'System' option to theme settings * Fix aria-orientation (#877) * Fix #861 and also fix rendering in case of manual grid (#874) * Fix security scanning workflow * Add @ref to some layout components and adjust css of those to use css vars for font properties * Update WhatsNew * Update docs
1 parent 9671e54 commit 1899238

File tree

324 files changed

+4772
-1008
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+4772
-1008
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- if: matrix.language == 'csharp'
5555
name: Manually build CSharp on .NET
5656
run: |
57-
dotnet build Microsoft.Fast.sln
57+
dotnet build Microsoft.FluentUI.sln
5858
5959
- name: Perform CodeQL Analysis
6060
uses: github/codeql-action/analyze@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ FodyWeavers.xsd
400400

401401
# Verify Test generated Files
402402
*.received.html
403+
*.received.razor.html
403404

404405
# Specific files, typically generated by tools
405406
*.cobertura.xml

Directory.Build.props

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
<Project>
2-
<PropertyGroup>
3-
<Authors>Microsoft</Authors>
4-
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
5-
<NeutralLanguage>en</NeutralLanguage>
6-
<Owners>Microsoft Corporation</Owners>
7-
<PackageProjectUrl>https://github.com/microsoft/fluentui-blazor</PackageProjectUrl>
8-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
9-
<RepositoryUrl>https://github.com/microsoft/fluentui-blazor</RepositoryUrl>
10-
<RepositoryType>git</RepositoryType>
11-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2+
<PropertyGroup>
3+
<Authors>Microsoft</Authors>
4+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
5+
<NeutralLanguage>en</NeutralLanguage>
6+
<Owners>Microsoft Corporation</Owners>
7+
<PackageProjectUrl>https://github.com/microsoft/fluentui-blazor</PackageProjectUrl>
8+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
9+
<RepositoryUrl>https://github.com/microsoft/fluentui-blazor</RepositoryUrl>
10+
<RepositoryType>git</RepositoryType>
11+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1212

13-
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
14-
15-
<VersionFile>3.2.0</VersionFile>
16-
<VersionPrefix>3.2.0</VersionPrefix>
17-
<VersionSuffix></VersionSuffix>
18-
19-
<AssemblyVersion>$(VersionFile)</AssemblyVersion>
20-
<FileVersion>$(VersionFile)</FileVersion>
21-
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
22-
<Version>$(VersionPrefix)$(VersionSuffix)</Version>
23-
</PropertyGroup>
13+
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
14+
15+
<VersionFile>3.2.1</VersionFile>
16+
<VersionPrefix>3.2.1</VersionPrefix>
17+
<VersionSuffix></VersionSuffix>
18+
19+
<AssemblyVersion>$(VersionFile)</AssemblyVersion>
20+
<FileVersion>$(VersionFile)</FileVersion>
21+
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
22+
<Version>$(VersionPrefix)$(VersionSuffix)</Version>
23+
</PropertyGroup>
24+
25+
<ItemGroup>
26+
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
27+
<_Parameter1>Microsoft.Fast.Components.FluentUI.Tests</_Parameter1>
28+
</AssemblyAttribute>
29+
</ItemGroup>
2430
</Project>

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ To make it easier to start a project that uses the Fluent UI Blazor components o
8686
[Microsoft.Fast.Templates.FluentUI](https://www.nuget.org/packages/Microsoft.Fast.Templates.FluentUI/) template package.
8787

8888
The package contains templates for creating Blazor Server and/or Blazor WebAssembly apps that mimic the regular Blazor
89-
templates. The library is already set up (and all the Bootstrap styling removed). All components fromthe regular template have been
89+
templates. The library is already set up (and all the Bootstrap styling removed). All components from the regular template have been
9090
replaced with Fluent UI Blazor counterparts (and a few extra have been added). Please see the [documentation page](https://www.fluentui-blazor.net/Templates)
9191
for more information.
9292

@@ -125,7 +125,7 @@ maintaining accessibility. This is accomplished through setting various "design
125125
## Blazor Hybrid
126126
You can use this library in Blazor Hybrid (MAUI/WPF/Windows Forms) projects. Setup is almost the same as described in the "Getting started" section above, but to get everything to work you'll need to take some extra steps (for now):
127127

128-
1. You need to make some changes in your `{Type}Program.cs` file
128+
1. You need to make some changes in your `{Type}Program.cs` file.
129129
Make sure the following is added before the `return builder.Build()` line:
130130
```csharp
131131
builder.Services.AddFluentUIComponents(options =>
@@ -134,11 +134,9 @@ builder.Services.AddFluentUIComponents(options =>
134134
});
135135
```
136136

137-
### Tempory workaround for MAUI/WPF/Windows Forms issues
137+
### Temporary workaround for MAUI/WPF/Windows Forms issues
138138
Currently when using the WebView to run Blazor (so all Hybrid variants) the web-components script is not imported automatically (see [#404](https://github.com/microsoft/fluentui-blazor/issues/404).
139-
There is also an isue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is
140-
a workaround available, namely to intercept '_framework/blazor.modules.json' and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has
141-
been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag:
139+
There is also an issue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is a workaround available, namely to intercept `'_framework/blazor.modules.json'` and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag:
142140

143141
```xml
144142
<script app-name="{NAME OF YOUR APP}" src="./_content/Microsoft.Fast.Components.FluentUI/js/initializersLoader.webview.js"></script>
@@ -151,8 +149,7 @@ initializersLoader replaces standard `fetch` function with one which provides th
151149
For more information regarding the bug, see issue [15234](https://github.com/dotnet/maui/issues/15234) in the MAUI repo.
152150

153151
## Use the DataGrid component with EF Core
154-
If you want to use the `<FluentDataGrid>` with data provided through EF Core, you need to install
155-
an additional package so the grid knows how to resolve queries asynchronously for efficiency. .
152+
If you want to use the `<FluentDataGrid>` with data provided through EF Core, you need to install an additional package so the grid knows how to resolve queries asynchronously for efficiency. .
156153

157154
### Installation
158155
Install the package by running the command:
@@ -161,7 +158,7 @@ dotnet add package Microsoft.Fast.Components.FluentUI.DataGrid.EntityFrameworkAd
161158
```
162159

163160
### Usage
164-
In your Program.cs file you need to add the following after the `builder.Services.AddFluentUIComponents(...);` lines:
161+
In your `Program.cs` file, you need to add the following after the `builder.Services.AddFluentUIComponents(...);` lines:
165162
```csharp
166163
builder.Services.AddDataGridEntityFrameworkAdapter();
167164
```

WHATSNEW.md

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,62 @@
1-
## V3.2.0
1+
## V3.2.1
2+
- Design Tokens WithDefault method implemented to allow setting a default value for a token. This is technically a breaking chage, but it is unlikely to affect anyone as the previous implementation did not do anything. See the `SiteSettingsPanel.razor.cs` in the demo site for an implementation example.
3+
- Fix [#872](https://github.com/microsoft/fluentui-blazor/issues/872): A11y issue in FluentDivider
4+
- Fix [#864](https://github.com/microsoft/fluentui-blazor/issues/864): A11y issue in FluentAutoComplete
5+
- Fix [#861](https://github.com/microsoft/fluentui-blazor/issues/861): A11y issue in FluentDataGrid EmptyContent
6+
- Fix [#848](https://github.com/microsoft/fluentui-blazor/issues/848): A11y issue in FluentDialogHeader
7+
- Fix [#847](https://github.com/microsoft/fluentui-blazor/issues/847): A11y issues in FluentNavMenu
8+
- Fix [#861](https://github.com/microsoft/fluentui-blazor/issues/861): A11y issue in FluentDataGrid EmptyContent
9+
- Fix [#859](https://github.com/microsoft/fluentui-blazor/issues/859): Fix FluentNavMenuGroup not clickable ouside of <a> tag
10+
- Fix [#857](https://github.com/microsoft/fluentui-blazor/issues/857): Fix copy Emoji code in search page
11+
- Fix [#841](https://github.com/microsoft/fluentui-blazor/issues/841): Overflow causes loss of background with Panel
12+
- Fix [#833](https://github.com/microsoft/fluentui-blazor/issues/833): Use correct abbreviation for day name in FluentCalendar (Chinese)
13+
- Miscelaneous documentation and typo fixes
14+
- Add more unit tests
15+
- Update to FluentUI System Icons 1.1.220
16+
17+
- **What's new (Name / Size(s) / Variant(s))**
18+
- Arrow Download / 28, 32 / Filled & Regular
19+
- Arrow Expand / 16 / Filled & Regular
20+
- Arrow Export Up / 16 / Filled & Regular
21+
- Arrow Import / 16 / Filled & Regular
22+
- Arrow Up Right Dashes / 16 / Filled & Regular
23+
- Battery 10 / 16 / Filled & Regular
24+
- Beaker Empty / 16 / Filled & Regular
25+
- Book / 16 / Filled & Regular
26+
- Border None / 16 / Filled & Regular
27+
- Branch Request / 16 / Filled & Regular
28+
- Clipboard Task List / 16 / Filled & Regular
29+
- Cut / 16 / Filled & Regular
30+
- Folder Search / 16, 20, 24 / Filled & Regular
31+
- Hexagon / 28, 32, 48 / Filled & Regular
32+
- Plug Connected / 16 / Filled & Regular
33+
- Plug Disconnected / 16 / Filled & Regular
34+
- Projection Screen Text / 20 / Filled & Regular
35+
- RSS / 16 / Filled & Regular
36+
- Shape Organic / 16, 20, 24, 28, 32, 48 / Filled & Regular
37+
- Teardrop Bottom Right / 16, 20, 24, 28, 32, 48 / Filled & Regular
38+
- Text Asterisk / 16 / Filled & Regular
39+
- Text Edit Style / 16 / Filled & Regular
40+
- Text Whole Word / 16 / Filled & Regular
41+
- Triangle / 24, 28 / Filled & Regular
42+
43+
**What's updated (Name / Size(s) / Variant(s))**
44+
- Arrow Bidirectional Left Right / 16 / Filled & Regular
45+
- Arrow Download / 24, 48 / Filled & Regular
46+
- Beaker Edit / 20 / Filled & Regular
47+
- Beaker Off / 20 / Filled & Regular
48+
- Beaker Settings / 20 / Filled & Regular
49+
- Clipboard Letter / 24 / Filled & Regular
50+
- Prohibited / 16, 24, 28, 48 / Filled & Regular
51+
52+
53+
## V3.2.0
254
- New NavMenu, NavGroup and NavLink components. **Breaking change** - See the [Upgrade guide](https://www.fluentui-blazor.net/UpgradeGuide) for details. See [NavMenu](https://www.fluentui-blazor.net/NavMenu) page for examples.
3-
- New FluentInputLabel component.
55+
- New FluentInputLabel component.
456
- FluentCard: Add AreaRestricted parameter to allow content to break out of card area.
557
- Provide error message when FluentDialogProvider missing
658
- It is now possible to add a tooltip to DataGridColumns
7-
59+
860
Fix [#796](https://github.com/microsoft/fluentui-blazor/pull/796): Fix IconColor doc page
961
Fix [#797](https://github.com/microsoft/fluentui-blazor/pull/797): Fix MessageBar issues
1062
Fix [#805](https://github.com/microsoft/fluentui-blazor/pull/805): InlineStyleBuilder on .NET6

examples/Demo/Client/FluentUI.Demo.Client.csproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,22 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
18-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.22" />
19-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.22" PrivateAssets="all" />
18+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.23" />
19+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.23" PrivateAssets="all" />
2020
</ItemGroup>
2121

2222
<ItemGroup Condition="'$(TargetFramework)'=='net7.0'">
23-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.11" />
24-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.11" PrivateAssets="all" />
23+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.12" />
24+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.12" PrivateAssets="all" />
2525
</ItemGroup>
2626

2727
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
28-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.1.*" />
29-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.1.*" PrivateAssets="all" />
28+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.*" />
29+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0-rc.2.*" PrivateAssets="all" />
30+
</ItemGroup>
31+
32+
<ItemGroup>
33+
<None Include="wwwroot\js\site.js" />
3034
</ItemGroup>
3135

3236
<ItemGroup>

examples/Demo/Client/wwwroot/index.html

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,36 @@
77
<title>FluentUI.Demo.Client</title>
88
<base href="/" />
99
<link href="_content/FluentUI.Demo.Shared/css/site.css" rel="stylesheet" />
10+
<style>
11+
:root {
12+
--neutral-fill-layer-rest: #ffffff;
13+
color: #000000;
14+
}
15+
16+
.loading-progress-text {
17+
color: #000000;
18+
}
19+
20+
@media(prefers-color-scheme: dark) {
21+
:root {
22+
--neutral-fill-layer-rest: #464646;
23+
color: #ffffff;
24+
}
25+
26+
.loading-progress-text {
27+
color: #ffffff;
28+
}
29+
}
30+
31+
body,
32+
#container {
33+
font: 14px "Segoe UI Variable", "Segoe UI", sans-serif;
34+
color: var(--neutral-base-color);
35+
background-color: var(--neutral-fill-layer-rest);
36+
}
37+
</style>
1038
<link href="FluentUI.Demo.Client.styles.css" rel="stylesheet" />
11-
39+
1240
<!-- Monaco editor -->
1341
<link rel="stylesheet" data-name="vs/editor/editor.main" href="_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs/editor/editor.main.min.css">
1442

@@ -18,17 +46,17 @@
1846
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/highlightjs-copy.min.css">
1947
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VML6BZWWTC"></script>
2048
<script>
21-
window.dataLayer = window.dataLayer || [];
22-
function gtag(){dataLayer.push(arguments);}
23-
gtag('js', new Date());
49+
window.dataLayer = window.dataLayer || [];
50+
function gtag() { dataLayer.push(arguments); }
51+
gtag('js', new Date());
2452

25-
gtag('config', 'G-VML6BZWWTC');
53+
gtag('config', 'G-VML6BZWWTC');
2654
</script>
2755
<script type="text/javascript">
28-
(function(c,l,a,r,i,t,y){
29-
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
30-
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
31-
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
56+
(function (c, l, a, r, i, t, y) {
57+
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
58+
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
59+
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
3260
})(window, document, "clarity", "script", "hnr14wvzj8");
3361
</script>
3462
</head>
@@ -48,6 +76,8 @@
4876
<a class="dismiss">🗙</a>
4977
</div>
5078
<script src="_framework/blazor.webassembly.js"></script>
79+
<script src="js/site.js"></script>
80+
<script src="_content/FluentUI.Demo.Shared/js/theme.js" type="module"></script>
5181

5282
<!-- Monaco Editor -->
5383
<script src="_content/Microsoft.Fast.Components.FluentUI/lib/monaco-editor/min/vs/loader.min.js"></script>

examples/Demo/Client/wwwroot/js/site.js

Whitespace-only changes.

examples/Demo/Server/Pages/_Layout.cshtml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
<meta charset="utf-8" />
99
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1010
<base href="~/" />
11+
<style>
12+
:root {
13+
--neutral-fill-layer-rest: #ffffff;
14+
color: #000000;
15+
}
16+
17+
@@media(prefers-color-scheme: dark) {
18+
:root {
19+
--neutral-fill-layer-rest: #464646;
20+
color: #ffffff;
21+
}
22+
}
23+
</style>
1124
<link href="_content/FluentUI.Demo.Shared/css/site.css" rel="stylesheet" />
1225
<link href="FluentUI.Demo.Server.styles.css" rel="stylesheet" />
1326

@@ -42,6 +55,7 @@
4255

4356
<script src="_framework/blazor.server.js"></script>
4457
<script src="js/site.js"></script>
58+
<script src="_content/FluentUI.Demo.Shared/js/theme.js" type="module"></script>
4559

4660

4761
<!-- Monaco Editor -->

0 commit comments

Comments
 (0)