diff --git a/src/widget/RadioWidget.jsx b/src/widget/RadioWidget.jsx index cb441aa..b82e609 100644 --- a/src/widget/RadioWidget.jsx +++ b/src/widget/RadioWidget.jsx @@ -1,5 +1,7 @@ import React from 'react'; +import { Button } from 'semantic-ui-react'; import { FormFieldWrapper } from '@plone/volto/components'; +import cx from 'classnames'; import './radio_widget.css'; const RadioWidget = ({ @@ -29,17 +31,19 @@ const RadioWidget = ({ >
{valueList.map((opt) => ( -
- onChange(id, e.target.value)} - /> - -
+ ))}
diff --git a/src/widget/radio_widget.css b/src/widget/radio_widget.css index 415f05a..1513abc 100644 --- a/src/widget/radio_widget.css +++ b/src/widget/radio_widget.css @@ -1,3 +1,9 @@ +.radio-widget { + display: flex; + flex-wrap: wrap; + align-items: center; +} + .radio-widget .radio-button { margin: 0.5rem 0; }