Skip to content

[EuiFlexGrid] Add justifyContent and alignItems like EuiFlexGroup #4878

Closed

Description

@j-m

EuiFlexGroup has justifyContent and alignItems props, but EuiFlexGrid surprisingly doesn't.

Activity

  1. j-m commented on Jun 16, 2021

    @j-m
    ContributorAuthor

    @cchaos Seeing as EuiFlexItem is also display: flex, should EuiFlexItem also have these props?

  2. cchaos commented on Jun 16, 2021

    @cchaos
    Contributor

    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.

  3. bhargavjoshi commented on Jun 21, 2021

    @bhargavjoshi

    I think we should close this issue.

  4. cchaos commented on Jun 21, 2021

    @cchaos
    Contributor

    The issue is still valid for EuiFlexGrid, just not EuiFlexItem.

  5. hetanthakkar commented on Jun 22, 2021

    @hetanthakkar
    Contributor

    I am on it!

  6. hetanthakkar commented on Jun 22, 2021

    @hetanthakkar
    Contributor

    @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!?

  7. j-m commented on Jun 23, 2021

    @j-m
    ContributorAuthor

    @cchaos FlexGroup and FlexGrid are incredibly similar, AFAICT grid realistically should just be a group with an implicit wrap and extra columns prop.

    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?

  8. github-actions commented on Dec 21, 2021

    @github-actions

    👋 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.

  9. added
    stale-issue
    on Dec 21, 2021
  10. github-actions commented on Dec 28, 2021

    @github-actions

    ❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

  11. added
    stale-issue-closed
    on Dec 28, 2021
  12. cchaos commented on Jan 6, 2022

    @cchaos
    Contributor

    Re-opening. Still low-hanging fruit. Most likely to get tackled during the CSS-in-JS conversion.

  13. reopened this on Jan 6, 2022
  14. added and removed
    stale-issue
    stale-issue-closed
    on Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions