You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiFlexGrid] Add justifyContent and alignItems like EuiFlexGroup #4878
We've stayed away from adding those because it's a lot to maintain and then item is no longer different from group. The flex is mainly added to allow for stretching. We've instead instructed people to next EuiFlexGroup inside if they need more flex adjustments, or wrap their children <div> to get out of the flex model.
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
Activity
j-m commentedon Jun 16, 2021
@cchaos Seeing as
EuiFlexItemis alsodisplay: flex, shouldEuiFlexItemalso have these props?cchaos commentedon Jun 16, 2021
We've stayed away from adding those because it's a lot to maintain and then
itemis no longer different fromgroup. Theflexis mainly added to allow for stretching. We've instead instructed people to nextEuiFlexGroupinside if they need more flex adjustments, or wrap their children<div>to get out of theflexmodel.bhargavjoshi commentedon Jun 21, 2021
I think we should close this issue.
cchaos commentedon Jun 21, 2021
The issue is still valid for EuiFlexGrid, just not EuiFlexItem.
hetanthakkar commentedon Jun 22, 2021
I am on it!
hetanthakkar commentedon Jun 22, 2021
@cchaos @j-m By adding justify-content and align-items props, we also add the corresponding styling for the component when that prop is passed right!?
j-m commentedon Jun 23, 2021
@cchaos FlexGroup and FlexGrid are incredibly similar, AFAICT grid realistically should just be a group with an implicit
wrapand extracolumnsprop.Grid is also missing reverse directions, as well a check on the component prop (group's is limited to div/span).
A breaking change to unify them and deprecate grid is probably a little OTT, but maybe grid should just use group under the hood?
github-actions commentedon Dec 21, 2021
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
github-actions commentedon Dec 28, 2021
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.
cchaos commentedon Jan 6, 2022
Re-opening. Still low-hanging fruit. Most likely to get tackled during the CSS-in-JS conversion.