mirror of
https://github.com/zotero/zotero.git
synced 2026-09-07 08:26:14 +00:00
- on all platforms, Space will open the menulist popup - on Windows, ArrowUp/ArrowDown will change selection without triggering command event. This is needed to avoid alerts that are meant to fire after a confirmed selection when the user is just trying to navigate the menu (e.g. item type menu) - on Windows, fix odd appearance of checked menulist options in advanced search condition dropdowns when "More" option is selected - on Linux, fix menulist focus ring not appearing in Advanced Search or Preferences (https://forums.zotero.org/discussion/129498/advanced-search-drop-down-menus-are-not-highlighted-during-keyboard-navigation) Fixes: #5772
24 lines
494 B
SCSS
24 lines
494 B
SCSS
menu,
|
|
menuitem {
|
|
.menu-icon[src] {
|
|
-moz-default-appearance: none;
|
|
}
|
|
}
|
|
|
|
menulist {
|
|
@include focus-ring;
|
|
}
|
|
|
|
@each $cls, $icon in $menu-icons {
|
|
.zotero-menuitem-#{$cls} {
|
|
// If icon starts with "light-dark:", use light and dark icon
|
|
@if str-slice($icon, 0, 11) == "light-dark:" {
|
|
@include focus-states using ($color) {
|
|
@include svgicon-menu(str-slice($icon, 12), $color, "16");
|
|
}
|
|
}
|
|
@else {
|
|
@include svgicon-menu($icon, "universal", "16", false, false, false);
|
|
}
|
|
}
|
|
};
|