From 84c0de93f12a8a4d7904244a411e431f115288c2 Mon Sep 17 00:00:00 2001 From: Tim Holt Date: Thu, 26 Jul 2018 21:35:19 +1000 Subject: [PATCH] added horizontal styling for addon-knobs radios --- addons/knobs/src/components/types/Radio.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/knobs/src/components/types/Radio.js b/addons/knobs/src/components/types/Radio.js index c7b845a62681..948651f95d55 100644 --- a/addons/knobs/src/components/types/Radio.js +++ b/addons/knobs/src/components/types/Radio.js @@ -6,6 +6,11 @@ const styles = { fontSize: 11, padding: '5px', }, + group: { + display: 'flex', + flexWrap: 'wrap', + alignItems: 'center', + }, }; class RadiosType extends Component { @@ -42,7 +47,7 @@ class RadiosType extends Component { render() { const { knob, onChange } = this.props; - return
{this.renderRadioButtonList(knob, onChange)}
; + return
{this.renderRadioButtonList(knob, onChange)}
; } }