Skip to content

fix: data-orientation in Resizable - #1939

Merged
zernonia merged 1 commit into
unovue:devfrom
rem-aster:claude/resizable-component-bug-wxzflw
Aug 15, 2026
Merged

fix: data-orientation in Resizable#1939
zernonia merged 1 commit into
unovue:devfrom
rem-aster:claude/resizable-component-bug-wxzflw

Conversation

@rem-aster

@rem-aster rem-aster commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🔗 Linked issue

#1938

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

fixed Resizable attribute
data-panel-group-direction --> data-orientation

📸 Screenshots (if appropriate)

image

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed vertical resizable panel layouts and handles across themes and generated components.
    • Corrected orientation styling for vertical sizing, positioning, and handle rotation.
    • Synchronized resizable component styling across embedded, registry, and deprecated versions for consistent behavior.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 33d84075-5f79-4dda-bd0d-165a580dac9b

📥 Commits

Reviewing files that changed from the base of the PR and between f28c64b and c315c07.

📒 Files selected for processing (33)
  • apps/v4/public/r/styles/default/resizable.json
  • apps/v4/public/r/styles/new-york/resizable.json
  • apps/v4/public/r/styles/reka-luma/resizable.json
  • apps/v4/public/r/styles/reka-lyra/resizable.json
  • apps/v4/public/r/styles/reka-maia/resizable.json
  • apps/v4/public/r/styles/reka-mira/resizable.json
  • apps/v4/public/r/styles/reka-nova/resizable.json
  • apps/v4/public/r/styles/reka-rhea/resizable.json
  • apps/v4/public/r/styles/reka-sera/resizable.json
  • apps/v4/public/r/styles/reka-vega/resizable.json
  • apps/v4/registry/bases/reka/ui/resizable/ResizableHandle.vue
  • apps/v4/registry/bases/reka/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-luma/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-luma/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-lyra/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-lyra/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-maia/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-maia/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-mira/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-mira/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-nova/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-nova/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-rhea/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-rhea/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-sera/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-sera/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-vega/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-vega/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/public/r/styles/default/resizable.json
  • deprecated/www/src/public/r/styles/new-york/resizable.json
  • deprecated/www/src/registry/default/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/registry/new-york/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/registry/registry-ui.ts
🚧 Files skipped from review as they are similar to previous changes (30)
  • deprecated/www/src/registry/default/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-maia/ui/resizable/ResizableHandle.vue
  • apps/v4/registry/bases/reka/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-nova/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/registry/new-york/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-vega/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-maia/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-mira/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-luma/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-nova/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-mira/ui/resizable/ResizableHandle.vue
  • apps/v4/public/r/styles/reka-nova/resizable.json
  • apps/v4/styles/reka-vega/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/public/r/styles/new-york/resizable.json
  • apps/v4/public/r/styles/reka-vega/resizable.json
  • deprecated/www/src/public/r/styles/default/resizable.json
  • apps/v4/public/r/styles/reka-maia/resizable.json
  • apps/v4/public/r/styles/reka-sera/resizable.json
  • apps/v4/public/r/styles/reka-luma/resizable.json
  • apps/v4/registry/bases/reka/ui/resizable/ResizableHandle.vue
  • apps/v4/styles/reka-lyra/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/public/r/styles/new-york/resizable.json
  • apps/v4/public/r/styles/default/resizable.json
  • apps/v4/styles/reka-luma/ui/resizable/ResizablePanelGroup.vue
  • apps/v4/styles/reka-sera/ui/resizable/ResizablePanelGroup.vue
  • deprecated/www/src/registry/registry-ui.ts
  • apps/v4/styles/reka-lyra/ui/resizable/ResizableHandle.vue
  • apps/v4/public/r/styles/reka-lyra/resizable.json
  • apps/v4/styles/reka-sera/ui/resizable/ResizableHandle.vue
  • apps/v4/public/r/styles/reka-mira/resizable.json

📝 Walkthrough

Walkthrough

Resizable handle and panel group selectors now use data-orientation instead of data-panel-group-direction across v4 sources, generated registries, and deprecated registry content.

Changes

Resizable orientation selectors

Layer / File(s) Summary
Update source resizable components
apps/v4/registry/bases/reka/ui/resizable/*, apps/v4/styles/reka-*/ui/resizable/*
Source handle and panel group components now use data-orientation for vertical sizing, rotation, positioning, and column layout.
Regenerate v4 registry content
apps/v4/public/r/styles/*/resizable.json
Generated v4 registry entries now use the updated orientation selectors.
Synchronize deprecated registry content
deprecated/www/src/public/r/styles/*/resizable.json, deprecated/www/src/registry/*/ui/resizable/*, deprecated/www/src/registry/registry-ui.ts
Deprecated style and embedded registry entries now use data-orientation for vertical panel layouts.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to c315c

This localized fix updates the Resizable attribute name across the affected component variants and generated outputs; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change from data-panel-group-direction to data-orientation in Resizable.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

deprecated/www/src/registry/default/ui/resizable/ResizablePanelGroup.vue

Parsing error: Unexpected token <

deprecated/www/src/registry/new-york/ui/resizable/ResizablePanelGroup.vue

Parsing error: Unexpected token <

deprecated/www/src/registry/registry-ui.ts

Parsing error: The keyword 'import' is reserved


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zernonia

Copy link
Copy Markdown
Member

Change is correct — reka-ui renders data-orientation on SplitterGroup/SplitterResizeHandle, so the old data-panel-group-direction variants were dead selectors.

One gap: this branch is based on a commit before 86bd7876 feat: rhea style, so the reka-rhea style still has the old attribute (both apps/v4/styles/reka-rhea/ui/resizable/* and apps/v4/public/r/styles/reka-rhea/resizable.json). Since those are generated from apps/v4/registry/bases/reka/ui/** — which this PR already fixes — a rebase onto dev + re-running the styles/registry build should sort it out. No need to hand-edit the rhea files.

LGTM after that.

…irection

Reka UI's SplitterGroup and SplitterResizeHandle expose the layout axis as
`data-orientation="horizontal|vertical"` (alongside `data-panel-group`,
`data-panel-group-id`). They have never rendered
`data-panel-group-direction` — that attribute comes from React's
react-resizable-panels and was carried over verbatim when the component was
ported, so every `data-[panel-group-direction=vertical]:*` variant is dead
CSS.

SplitterGroup already sets `flex-direction` inline, so the group's variant was
redundant either way and the visible breakage is entirely in the handle: in a
vertical group it keeps its 1px-wide vertical geometry and an unrotated grip
instead of becoming a horizontal divider.

Retarget the variants at `data-orientation` in the reka base components and
re-run the styles/registry build, which propagates to all eight per-style
outputs (rhea included) and the published registry JSON. The legacy
`default`/`new-york` registry JSON carried the same dead selector in
ResizablePanelGroup and is fixed too; its ResizableHandle already used
`data-orientation`, which is why only vertical groups looked broken there.
Those two legacy files also pick up the trailing CRLF -> LF normalization
that .gitattributes already mandates for apps/v4/public/r/**/*.json.

`registry/new-york-v4` was already correct and is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KvDxDGp31TiTny8aXpoqv
@rem-aster
rem-aster force-pushed the claude/resizable-component-bug-wxzflw branch from f0df38f to c315c07 Compare August 14, 2026 10:17
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@rem-aster
rem-aster force-pushed the claude/resizable-component-bug-wxzflw branch from c315c07 to 0b9ea77 Compare August 14, 2026 11:48
@rem-aster

Copy link
Copy Markdown
Contributor Author

Change is correct — reka-ui renders data-orientation on SplitterGroup/SplitterResizeHandle, so the old data-panel-group-direction variants were dead selectors.

One gap: this branch is based on a commit before 86bd7876 feat: rhea style, so the reka-rhea style still has the old attribute (both apps/v4/styles/reka-rhea/ui/resizable/* and apps/v4/public/r/styles/reka-rhea/resizable.json). Since those are generated from apps/v4/registry/bases/reka/ui/** — which this PR already fixes — a rebase onto dev + re-running the styles/registry build should sort it out. No need to hand-edit the rhea files.

LGTM after that.

Done, thanks for the quick review

@zernonia
zernonia merged commit 81ededb into unovue:dev Aug 15, 2026
1 check passed
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