Skip to content

feat: add focus and keyboard resize support to split-layout#11964

Draft
web-padawan wants to merge 1 commit into
mainfrom
feat/split-layout-keyboard
Draft

feat: add focus and keyboard resize support to split-layout#11964
web-padawan wants to merge 1 commit into
mainfrom
feat/split-layout-keyboard

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Description

Fixes #951

  • Added role="slider" and tabindex="0" to the splitter element making it focusable
  • Added aria-valuemin, aria-valuemax and aria-valuenow announced by screen readers
  • Added FocusMixin with focus() override, focused and focus-ring attributes logic
  • Added CSS to apply outline on the splitter if focus-ring is set (base styles and Lumo)
  • Added I18nMixin and i18n property { separator: 'Resize separator' } by default
  • Added KeyboardMixin and logic for Arrow keys (+ RTL), PageDown / PageUp, Home / End
    • Arrow keys use a hardcoded default step of 16px, no custom step for now
    • PageDown / PageUp keys use 10% as a step (evaluated using available size)
  • Keydown events are debounced and reuse existing splitter-dragend event to notify change
  • Added logic to focus the splitter on pointer up event to allow pressing keys after clicking it

Type of change

  • Feature

@web-padawan web-padawan force-pushed the feat/split-layout-keyboard branch from 7a8b84a to 5312527 Compare June 23, 2026 08:39
@web-padawan web-padawan force-pushed the feat/split-layout-keyboard branch from 5312527 to 0ff2331 Compare June 23, 2026 09:35
@sonarqubecloud

Copy link
Copy Markdown

@web-padawan web-padawan marked this pull request as draft June 24, 2026 07:21
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.

[split-layout] Provide a way to resize with keyboard

1 participant