kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
RadioItem: fix dark mode
rodzic
4cf9fab13c
commit
cee9d45b9d
|
@ -5,7 +5,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|
||||||
import { Select } from '../../components/ui';
|
import { Text, Select } from '../../components/ui';
|
||||||
|
|
||||||
export const FormPropTypes = {
|
export const FormPropTypes = {
|
||||||
label: PropTypes.oneOfType([
|
label: PropTypes.oneOfType([
|
||||||
|
@ -224,7 +224,8 @@ export class RadioItem extends ImmutablePureComponent {
|
||||||
return (
|
return (
|
||||||
<li className='radio'>
|
<li className='radio'>
|
||||||
<label htmlFor={id}>
|
<label htmlFor={id}>
|
||||||
<input id={id} type='radio' {...props} /> {label}
|
<input id={id} type='radio' {...props} />
|
||||||
|
<Text>{label}</Text>
|
||||||
{hint && <span className='hint'>{hint}</span>}
|
{hint && <span className='hint'>{hint}</span>}
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
|
|
Ładowanie…
Reference in New Issue