Skip to content

Commit

Permalink
#423 - Adding ‘baseline’ as option to EuiFlexGroup’s alignItems prop
Browse files Browse the repository at this point in the history
__’normal’ doesn’t do anything__
  • Loading branch information
cchaos committed Mar 20, 2018
1 parent 8081dda commit 7b638a7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/flex/__snapshots__/flex_group.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ exports[`EuiFlexGroup is rendered 1`] = `
</div>
`;

exports[`EuiFlexGroup props alignItems baseline is rendered 1`] = `
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsBaseline euiFlexGroup--responsive"
/>
`;

exports[`EuiFlexGroup props alignItems center is rendered 1`] = `
<div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsCenter euiFlexGroup--responsive"
Expand Down
5 changes: 5 additions & 0 deletions src/components/flex/_flex_group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ $gutterTypes: (
align-items: flex-end;
}

.euiFlexGroup--alignItemsBaseline {
align-items: baseline;
}

// Wrap
.euiFlexGroup--wrap {
flex-wrap: wrap;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/flex/flex_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const alignItemsToClassNameMap = {
flexStart: 'euiFlexGroup--alignItemsFlexStart',
flexEnd: 'euiFlexGroup--alignItemsFlexEnd',
center: 'euiFlexGroup--alignItemsCenter',
baseline: 'euiFlexGroup--alignItemsBaseline',
};

export const ALIGN_ITEMS = Object.keys(alignItemsToClassNameMap);
Expand Down

0 comments on commit 7b638a7

Please sign in to comment.