Skip to content

Commit

Permalink
fix(core): fix alignment on cards in card choices (#7158)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Jun 27, 2019
1 parent a9c5163 commit 8d929f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ export class AmazonLoadBalancerChoiceModal extends React.Component<
};

public static show(props: ILoadBalancerModalProps): Promise<void> {
return ReactModal.show(AmazonLoadBalancerChoiceModal, {
...props,
className: 'create-pipeline-modal-overflow-visible',
});
return ReactModal.show(
AmazonLoadBalancerChoiceModal,
{
...props,
className: 'create-pipeline-modal-overflow-visible modal-lg',
},
{ bsSize: 'lg' },
);
}

constructor(props: ILoadBalancerModalProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ProviderSelectionModal extends React.Component<
<div className="card-choices">
{providerOptions.map(provider => (
<div
className={`card ${selectedProvider === provider && 'active'}`}
className={`card vertical center middle ${selectedProvider === provider && 'active'}`}
key={provider}
onClick={() => this.setProvider(provider)}
>
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/modules/core/src/modal/modals.less
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ abbr.select2-search-choice-close {
margin: 15px;
padding: 30px 15px;
cursor: pointer;
display: flex;
align-items: center;
&.active {
border: 1px solid var(--color-accent);
background-color: var(--color-accent-g2);
Expand Down

0 comments on commit 8d929f0

Please sign in to comment.