diff --git a/changelog/unreleased/bugfix-application-menu-not-operable-in-safari-browser b/changelog/unreleased/bugfix-application-menu-not-operable-in-safari-browser new file mode 100644 index 00000000000..4ac093c7c4c --- /dev/null +++ b/changelog/unreleased/bugfix-application-menu-not-operable-in-safari-browser @@ -0,0 +1,6 @@ +Bugfix: Application menu not operable in Safari browser + +We've fixed a bug where the application menu was not operable in the Safari browser. + +https://github.com/owncloud/web/pull/11726 +https://github.com/owncloud/web/issues/11718 diff --git a/packages/design-system/src/components/OcDrop/OcDrop.vue b/packages/design-system/src/components/OcDrop/OcDrop.vue index a68d52f71f9..f8e7e2650e8 100644 --- a/packages/design-system/src/components/OcDrop/OcDrop.vue +++ b/packages/design-system/src/components/OcDrop/OcDrop.vue @@ -138,7 +138,10 @@ export default defineComponent({ } const onFocusOut = (event: FocusEvent) => { - const focusLeft = event.relatedTarget && !unref(drop).contains(event.relatedTarget as Node) + const focusLeft = + event.relatedTarget && + !unref(drop).contains(event.relatedTarget as Node) && + !(event.relatedTarget as HTMLElement)?.classList?.contains('tippy-box') if (focusLeft) { // close drop when the focus leaves it hide() @@ -171,7 +174,6 @@ export default defineComponent({ position() { this.tippy.setProps({ placement: this.position }) }, - mode() { this.tippy.setProps({ trigger: this.triggerMapping }) } @@ -268,6 +270,7 @@ export default defineComponent({ // note: needed so that the box shadow from `oc-box-shadow-medium` doesn't get suppressed padding: 8px; } + li.oc-menu-item-hover { a, .item-has-switch, @@ -275,6 +278,7 @@ export default defineComponent({ box-sizing: border-box; padding: var(--oc-space-small); color: var(--oc-color-swatch-passive-default); + &:focus:not([disabled]), &:hover:not([disabled]) { background-color: var(--oc-color-background-hover); @@ -282,9 +286,11 @@ export default defineComponent({ text-decoration: none !important; border-radius: 5px; } + &:hover span { color: var(--oc-color-swatch-brand-hover) !important; } + span { text-decoration: none !important; } @@ -322,15 +328,15 @@ export default defineComponent({

@@ -366,7 +372,8 @@ export default defineComponent({
  • - Menu item 2
  • - Submenu item 1 + Submenu item 1
  • - Submenu item 2 + Submenu item 2
  • @@ -416,21 +423,21 @@ export default defineComponent({ ### Open drop programatically ```js ```