diff --git a/lib/shadix/components/radio_group.ex b/lib/shadix/components/radio_group.ex index 3717461..a022d3f 100644 --- a/lib/shadix/components/radio_group.ex +++ b/lib/shadix/components/radio_group.ex @@ -12,6 +12,10 @@ defmodule Shadix.Components.RadioGroup do groups them); the selected dot is a CSS `before:` pseudo-element shown on `:checked`. No JavaScript. + Because grouping (and arrow-key navigation) is the browser's native behaviour over the + `name` attribute, **each distinct radio group on a page must use a distinct field name**. + Two groups backed by the same field name become one group for keyboard navigation. + Styling is colocated (`priv/styles/