Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/radio/src/RadioGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import { spacing, position, layout, dimensions } from 'ui-box'
import { useId } from '../../hooks'
import { Pane } from '../../layers'
import { Text } from '../../typography'
import { Label } from '../../typography'
import Radio from './Radio'

const noop = () => {}
Expand Down Expand Up @@ -32,11 +32,7 @@ const RadioGroup = memo(

return (
<Pane role="group" aria-label={label} {...rest} ref={ref}>
{label && (
<Text color="muted" fontWeight={500}>
{label}
</Text>
)}
{label && <Label fontWeight={500}>{label}</Label>}
{options.map(item => (
<Radio
key={item.value}
Expand Down