Skip to content

Commit

Permalink
Fixed line height in radio selectors (#614)
Browse files Browse the repository at this point in the history
Fixes #604
  • Loading branch information
maxneuvians authored Jul 18, 2018
1 parent 5d4f8aa commit 95c42b8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions components/radio_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { logEvent } from "../utils/analytics";
const styles = theme => ({
formControl: {
margin: theme.spacing.unit
},
formLabel: {
lineHeight: "1.5em",
marginBottom: "10px"
}
});

Expand Down Expand Up @@ -106,7 +110,9 @@ export class RadioSelector extends React.Component {
if (Object.values(allFilterIds).length != 0) {
return (
<FormControl className={classes.formControl}>
<FormLabel>{this.props.legend}</FormLabel>
<FormLabel className={classes.formLabel}>
{this.props.legend}
</FormLabel>
<RadioGroup
aria-label={this.props.legend}
value={selected[selectorType]}
Expand Down Expand Up @@ -181,6 +187,7 @@ RadioSelector.propTypes = {
store: PropTypes.object
};

export default connect(mapStateToProps, mapDispatchToProps)(
withStyles(styles)(RadioSelector)
);
export default connect(
mapStateToProps,
mapDispatchToProps
)(withStyles(styles)(RadioSelector));

0 comments on commit 95c42b8

Please sign in to comment.