Found while testing https://github.com/brave/brave-browser/issues/41782. Before tearing off the tab from the window, Leo panel is activated and the icon shows as active and pressed state as expected, but after tearing off the tab, Leo icon shows active (nala blue color) but didn't show pressed state. This issue happens only in Win 11 x64. Verified in macOS arm64 and both active icon and pressed states are shown.
Steps to reproduce
Install 1.72.93
launch Brave
open two tabs
click Leo icon on the sidebar for one of the tabs
detach the tab that has Leo panel activated
Actual result
Leo icon is shown as active, but the pressed state is not restored. Had to hover the icon to show the pressed state
Description
Found while testing https://github.com/brave/brave-browser/issues/41782. Before tearing off the tab from the window, Leo panel is activated and the icon shows as active and pressed state as expected, but after tearing off the tab, Leo icon shows active (nala blue color) but didn't show pressed state. This issue happens only in
Win 11 x64
. Verified inmacOS arm64
and both active icon and pressed states are shown.Steps to reproduce
Actual result
Leo icon is shown as active, but the pressed state is not restored. Had to hover the icon to show the pressed state
https://github.com/user-attachments/assets/612c0866-33b1-4c27-bbe2-8f3beb4b966a
Expected result
Reproduces how often
Easily reproduced
Brave version (brave://version info)
Channel information
Reproducibility
Miscellaneous information
@simonhong @rebron cc: @brave/qa-team