Skip to content

Commit

Permalink
fix menus
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Nov 24, 2024
1 parent daa2f22 commit bcbd8fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/livecodes/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ const adjustFontSize = (container: HTMLElement) => {
};

const handleAppMenuButtonFocus = () => {
// workaround for safari where click does not trigger focus!
// workaround for safari where click does not maintain focus!
document.querySelectorAll<HTMLElement>('.app-menu-button').forEach((button) => {
eventsManager.addEventListener(button, 'click', () => {
button.focus();
Expand Down
6 changes: 0 additions & 6 deletions src/livecodes/styles/inc-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@

.app-menu-button {
&:focus + .menu-scroller,
&:focus-within + .menu-scroller,
&:has(:focus) + .menu-scroller,
&:active + .menu-scroller,
&:focus + .menu-scroller > .dropdown-menu,
&:focus-within + .menu-scroller > .dropdown-menu,
&:has(:focus) + .menu-scroller > .dropdown-menu,
&:active + .menu-scroller > .dropdown-menu,
+ .menu-scroller:hover,
+ .menu-scroller > .dropdown-menu:hover {
animation: fadeIn 0.4s forwards;
Expand Down

0 comments on commit bcbd8fd

Please sign in to comment.