switcherPopup: Restore selected pseudo-class

- move styles to switcher-popup
- reverts a change in a code clean up that causes problems with screen readers

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7336
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3127>
This commit is contained in:
Sam Hewitt
2024-01-19 11:26:34 -03:30
committed by Marge Bot
parent 628f0b5be9
commit 4d1ae863d0
3 changed files with 15 additions and 11 deletions

View File

@@ -494,9 +494,9 @@ export const SwitcherList = GObject.registerClass({
if (this._items[index]) {
if (justOutline)
this._items[index].add_style_pseudo_class('selected');
else
this._items[index].add_style_pseudo_class('highlighted');
else
this._items[index].add_style_pseudo_class('selected');
}
this._highlighted = index;