Skip to content

fix(styles): stop mdc touch-target spans overlapping in the automation editor - #752

Merged
tiberius0954 merged 1 commit into
masterfrom
fix/automation-touch-target-overlap
Oct 26, 2026
Merged

tiberius0954 merged 1 commit into
masterfrom
fix/automation-touch-target-overlap

Conversation

@tiberius0954

Copy link
Copy Markdown
Contributor

What

Disable MDC's fixed 48px .mat-mdc-button-touch-target span on the automation editor's icon buttons: the effect-tree rows, the editor header (expand/collapse and move up/down), and the double-click delete button.

Why

MDC renders that touch-target span at a fixed 48px regardless of --mdc-icon-button-state-layer-size, so the earlier state-layer sizing didn't shrink it. On the dense effect-tree rows and the side-by-side node-editor header buttons the 48px spans overlap neighbouring controls and intercept their clicks, which a community user reported as controls being hard to click. The pre-migration Angular 13 build had no such span, so the hit area matched the visible button; --mat-icon-button-touch-target-display: none restores that behaviour on both desktop and touch.

Measured in the automation playground, overlapping touch-target pairs drop from 14 on the tree and 2 on the node-editor header to 0.

…n editor

MDC's fixed 48px .mat-mdc-button-touch-target ignores state-layer-size, so on the dense effect-tree rows and the side-by-side node-editor header buttons it overlaps adjacent controls and steals clicks. Disable the span so the hit area matches the visible 24/40px button, as it did before the mdc migration.
@snyk-io

snyk-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@tiberius0954

Copy link
Copy Markdown
Contributor Author

BEFORE / AFTER

image image

@tiberius0954
tiberius0954 merged commit 43e580c into master Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant