Skip to content

Commit

Permalink
fix(core): fix vertical alignment of radio buttons (#7344)
Browse files Browse the repository at this point in the history
* fix(core): fix vertical alignment of radio buttons

* fix(kubernetes): make all kubernetes v2 stages use vertically aligned radio buttons
  • Loading branch information
maggieneterval authored Aug 19, 2019
1 parent d00f2a4 commit 8bdca89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ export const RadioButtonInput = (props: IRadioButtonInputProps) => {
);

const VerticalRadioButtons = ({ opts }: { opts: IRadioButtonOptions[] }) => (
<div className="vertical left">
<div className={elementClassName}>
{opts.map(option => (
<RadioButton key={option.label} option={option} />
))}
</div>
<div className={`${elementClassName} vertical left`}>
{opts.map(option => (
<RadioButton key={option.label} option={option} />
))}
</div>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ export class DeployManifestStageForm extends React.Component<
<h4>Manifest Configuration</h4>
<StageConfigField label="Manifest Source" helpKey="kubernetes.manifest.source">
<RadioButtonInput
inline={true}
options={this.getSourceOptions()}
onChange={(e: any) => this.props.formik.setFieldValue('source', e.target.value)}
value={stage.source}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export class PatchManifestStageForm extends React.Component<
options={this.getSourceOptions()}
onChange={(e: any) => this.props.formik.setFieldValue('source', e.target.value)}
value={stage.source || 'text'}
inline={true}
/>
</StageConfigField>
{stage.source === this.textSource && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ export class KubernetesV2RunJobStageConfig extends React.Component<IStageConfigP
<h4>Manifest Configuration</h4>
<StageConfigField label="Manifest Source" helpKey="kubernetes.manifest.source">
<RadioButtonInput
inline={true}
options={this.getSourceOptions()}
onChange={(e: any) => this.props.updateStageField({ source: e.target.value })}
value={stage.source}
Expand Down

0 comments on commit 8bdca89

Please sign in to comment.