Skip to content

Restyle Dockview tabs to Angular Material 3 design - #99

Merged
jgindin merged 3 commits into
mainfrom
dockview-tab-styling
Jul 20, 2026
Merged

jgindin merged 3 commits into
mainfrom
dockview-tab-styling

Conversation

@jgindin

@jgindin jgindin commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Style Dockview tabs using Angular Material 3 design tokens (--mat-sys-*), add active tab primary underline indicator with focus-within over-constraint protection, display drag_indicator icon on hover, and auto-hide right dropdown button when tabs fit.

See
image

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

Style Dockview tabs using Angular Material 3 design tokens
(--mat-sys-*), add active tab primary underline indicator with
focus-within over-constraint protection, display drag_indicator
icon on hover, and auto-hide right dropdown button when tabs fit.

TAG=agy
CONV=7a847ae9-2366-47f3-9d73-9c4a5098b5a9

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces Material M3 styling to the Dockview tabs in the composer workspace and implements dynamic tab overflow detection using a ResizeObserver to toggle the has-tab-overflow class. Unit tests were also added to verify these changes. The review feedback recommends cancelling pending requestAnimationFrame calls upon component destruction to prevent memory leaks, coalescing rapid calls to checkTabOverflow to avoid layout thrashing, and adding defensive checks for dockviewRoot to prevent runtime errors.

@github-actions

github-actions Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

This Pull Request was closed. The preview environment at /pr/99/ has been fully decommissioned.

Coalesce multiple rapid calls to checkTabOverflow into a single
requestAnimationFrame callback, add defensive check on dockviewRoot,
and cancel pending animation frames on component destruction.

TAG=agy
CONV=7a847ae9-2366-47f3-9d73-9c4a5098b5a9
@jgindin
jgindin merged commit 2c00228 into main Jul 20, 2026
13 checks passed
@jgindin
jgindin deleted the dockview-tab-styling branch July 20, 2026 17:58
github-actions Bot added a commit that referenced this pull request Jul 20, 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.

3 participants