Skip to content

RadioGroup: visual orientation also restricts arrow-key navigation axis #7415

Open

Description

@shinynet-claude

Environment

@nuxt/ui 4.12.0, reka-ui 2.11.0

Reproduction

<script setup>
import { ref } from 'vue'
const value = ref('a')
const items = [{ value: 'a', label: 'At home' }, { value: 'b', label: 'Full gym' }]
</script>
<template>
  <URadioGroup v-model="value" :items="items" orientation="horizontal" />
</template>

Focus "At home" and press ArrowDown.

Expected

Focus and selection move to "Full gym". The WAI-ARIA radio group pattern moves with both Down/Right and Up/Left, regardless of visual layout.

Actual

Nothing happens; only ArrowRight works. URadioGroup passes its visual orientation straight to Reka's roving focus group, so the layout choice also restricts the keyboard axis.

Suggestion

Separate visual orientation from keyboard orientation, for example by leaving Reka's orientation undefined so all four arrows work, or by exposing an explicit prop for the keyboard axis.

Activity

  1. alvarosabu commented on Nov 17, 2026

    @alvarosabu
    Contributor

    @benjamincanac mind if I take this?

  2. scenerecap commented on Nov 19, 2026

    @scenerecap

    Reproduced on ui.nuxt.com (nuxt/ui v4.13.0, Reka UI 2.11.0) today (2026-11-19, Chromium 151, 1280×720).

    Steps:

    1. Open ui.nuxt.com/components/radio-group and scroll to the Orientation section.
    2. Click System in the horizontal radio group (System / Light / Dark) to focus it.
    3. Press ArrowDown three times.

    What happens: selection stays on System — ArrowDown has no effect. aria-checked and activeElement both remain on the System radio button after all three presses.

    1. Press ArrowRight once — selection moves to Light.

    The horizontal orientation prop restricts keyboard navigation to the Left/Right axis only. The WAI-ARIA radio group pattern requires all four arrows to navigate between items regardless of the visual layout.

    Recording with both behaviors: https://scenerecap.com/s/3riuut5pgu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAwaiting initial review and prioritization

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions