Bug #93284

Context-menu in pagetree does not open for page-type "external link" with the "chain"-icon - only the non-transparent part of a SVG-icon in Pagetree is clickable

Added by Ayke Halder 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2021-01-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

In Pagetree a click on an icon must open the context-menu.
For icons with transparence the context-menu does not open if you hit the transparent area of the icon.
Instead the click hits the page-title behind and the default action for clicking the page-title is fired - so this opens the page in the content-area.

Especially the page-type "external link" with the "chain"-icon becomes nearly unusable:

System

  • TYPO3 10.4.12
  • Firefox 79.0b10

Further investigation

Only visible elements (paths, rect, etc.) in SVG are clickable.

Proposed fix

Add a transparent rectangle to the icon. This makes the whole icon-area clickable.

<g class="icon-def" id="icon-apps-pagetree-page-shortcut-external">
  <g xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
    <g>
      <!-- begin: added rectangle -->
      <rect width="16" height="16" fill="transparent"></rect>
      <!-- end: added rectangle -->
      <path fill="#666" d="…"></path>
      <path fill="#212121" d="…" opacity="0.3"></path>
      <path fill="#999" d="…"></path>
    </g>
  </g>
</g>

Files


Related issues

Related to TYPO3 Core - Bug #87453: Contextmenu with left click can only be triggered via exact hover on a svg pathClosed2019-01-15

Actions
#1

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68800

#2

Updated by Benni Mack 7 months ago

  • Related to Bug #87453: Contextmenu with left click can only be triggered via exact hover on a svg path added
#3

Updated by Gerrit Code Review 7 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68800

#4

Updated by Benni Mack 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#5

Updated by Benni Mack 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF