-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(expansion): Expansion panel header changes color when clicking a button inside #22942
Comments
@zelliott curious to get your opinion on this. The expansion panel hard-codes the focus origin to |
Yeah, IIRC that's why @jesscxu went through a while back and tried to remove all of the If So I think if we make the change above (from Taking a step back, it's probably worth revisiting when we apply focus styles to components, but that's a larger discussion... |
Not that this isn't a bug, and I'm also new here, but if you want the header to stay white or any other color, you can use inline styling here, or ngClass/ngStyle for a more dynamic approach. Seems to work for me on the StackBlitz, should be viable as a work-around. |
Hi! Is anybody working on it? Otherwise, I could try to fix it if you don't mind. |
… next or cancel button inside the panel When we click on next or cancel button the focus remained on the current panel header. This fix uses focus method from the class and changes the `FocusMonitor` to be in `EVENTUAL` Fixes angular#22942
Reproduction
Steps to reproduce:
Expected Behavior
Panel should close, nothing more.
Actual Behavior
Panel header is "focused", which looks odd considering you just tried to close it (and potentially even changed to another open panel).
If this is intended, is there any way to programmatically remove focus to fix it?
Environment
The text was updated successfully, but these errors were encountered: