Skip to content

Commit

Permalink
[AppBar] Fix regression with icon active color (#2318)
Browse files Browse the repository at this point in the history
* AppBar address Aspire regression

* Update WhatsNew

---------

Co-authored-by: Denis Voituron <[email protected]>
  • Loading branch information
vnbaaij and dvoituron authored Jul 4, 2024
1 parent 47affd9 commit 211af3f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion WHATSNEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- [Demo] Fixes link for Time picker in demo projects ([#2246](https://github.com/microsoft/fluentui-blazor/pull/2246))

### Components
- [Rating] **New component** ([#2258](https://github.com/microsoft/fluentui-blazor/pull/2258))
- [AppBar] Fix regression with icon accent color ([#2318](https://github.com/microsoft/fluentui-blazor/pull/2318))
- [Autocomplete] Accessibility: Scrolling not working with keyboard ([#2221](https://github.com/microsoft/fluentui-blazor/pull/2221))
- [AutoComplete] Allow focusable Badge dismiss buttons (accessibility) ([#2272](https://github.com/microsoft/fluentui-blazor/pull/2272))
- [Autocomplete] Fix AriaLabel ([#2303](https://github.com/microsoft/fluentui-blazor/pull/2303))
Expand All @@ -35,7 +37,6 @@
- [NumberField] Add sbyte type ([#2308](https://github.com/microsoft/fluentui-blazor/pull/2308))
- [Overflow] Add refresh method, add VisibleOnLoad parameter ([#2236](https://github.com/microsoft/fluentui-blazor/pull/2236))
- [ProfileMenu] Fix the initials inner the popup panel ([#2294](https://github.com/microsoft/fluentui-blazor/pull/2294))
- [Rating] **New component** ([#2258](https://github.com/microsoft/fluentui-blazor/pull/2258))
- [Slider] Fix getting caught in update loop ([#2265](https://github.com/microsoft/fluentui-blazor/pull/2265))
- [Slider] Refactor code after PR #2265 ([#2287](https://github.com/microsoft/fluentui-blazor/pull/2287))
- [TimePicker] Add null check for empty string ([#2245](https://github.com/microsoft/fluentui-blazor/pull/2245))
Expand Down
3 changes: 2 additions & 1 deletion examples/Demo/Shared/wwwroot/docs/WhatsNew.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- [Demo] Fixes link for Time picker in demo projects ([#2246](https://github.com/microsoft/fluentui-blazor/pull/2246))

### Components
- [Rating] **New component** ([#2258](https://github.com/microsoft/fluentui-blazor/pull/2258))
- [AppBar] Fix regression with icon accent color ([#2318](https://github.com/microsoft/fluentui-blazor/pull/2318))
- [Autocomplete] Accessibility: Scrolling not working with keyboard ([#2221](https://github.com/microsoft/fluentui-blazor/pull/2221))
- [AutoComplete] Allow focusable Badge dismiss buttons (accessibility) ([#2272](https://github.com/microsoft/fluentui-blazor/pull/2272))
- [Autocomplete] Fix AriaLabel ([#2303](https://github.com/microsoft/fluentui-blazor/pull/2303))
Expand All @@ -35,7 +37,6 @@
- [NumberField] Add sbyte type ([#2308](https://github.com/microsoft/fluentui-blazor/pull/2308))
- [Overflow] Add refresh method, add VisibleOnLoad parameter ([#2236](https://github.com/microsoft/fluentui-blazor/pull/2236))
- [ProfileMenu] Fix the initials inner the popup panel ([#2294](https://github.com/microsoft/fluentui-blazor/pull/2294))
- [Rating] **New component** ([#2258](https://github.com/microsoft/fluentui-blazor/pull/2258))
- [Slider] Fix getting caught in update loop ([#2265](https://github.com/microsoft/fluentui-blazor/pull/2265))
- [Slider] Refactor code after PR #2265 ([#2287](https://github.com/microsoft/fluentui-blazor/pull/2287))
- [TimePicker] Add null check for empty string ([#2245](https://github.com/microsoft/fluentui-blazor/pull/2245))
Expand Down
14 changes: 13 additions & 1 deletion src/Core/Components/AppBar/FluentAppBar.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,19 @@

::deep .fluent-appbar-item:hover svg[part="icon-rest"],
::deep .fluent-appbar-item:not(:hover):not(.active) svg[part="icon-active"],
::deep .fluent-appbar-item:not(:hover).active svg[part="icon-rest"],
::deep .fluent-appbar-item:not(:hover) a.active svg[part="icon-rest"],
::deep .fluent-appbar-item[overflow] {
display: none;
}

::deep .fluent-appbar-item:not(:hover) .active svg[part="icon-active"] {
display: block;
}

::deep .fluent-appbar-item.popover:not(:hover) a.active svg[part="icon-active"] {
display: none;
}

::deep .fluent-appbar-item.popover:not(:hover) a.active svg[part="icon-rest"] {
display: block;
}

0 comments on commit 211af3f

Please sign in to comment.