Skip to content

[EuiDescribedFormGroup] Allow custom widths to be set #2540

Closed

Description

@gjones

Summary
Currently EuiDescribedFormGroup is a 50/50 split between the label (left) and the form/action area (right). I'd like to suggest that we allow a more specific breakdowns to be set.

Screenshot 2019-11-15 at 11 24 27

Our problem
In it's default state, there's not enough space in the right side for more complex actions to be taken. When maxWidth:full is set, there's enough space on the right but now there's too much space on the left and the label is often isolated.

Proposed solution
Handle the label width with a prop that takes percentage, an example might be labelWidth: 35. This would give the label width 35% and automatically assign the right side the remaining 65%.

This would allow us in Cloud to do something like this:
Screenshot 2019-11-15 at 11 30 16

Thoughts?

cc @cchaos @snide

Activity

  1. ODAVING commented on Nov 15, 2019

    @ODAVING

    I think I'll be able to handle this.

  2. cchaos commented on Nov 15, 2019

    @cchaos
    Contributor

    We talked a bit about this at EAH and the main issue is the EuiDescribedFormRow's fullWidth property continues to grow both columns equally (50%). However, the left side (the description side) should really max out at a certain point.

    However, I don't think the solution would be to make the consumer think of the proper proportions but to actually initiate those proper proportions. But instead we have a couple different pre-determined sizing like "half" vs "third". Then the left side will probably also need a solid min-width to ensure it doesn't get too skinny.

  3. elizabetdev commented on Jul 15, 2020

    @elizabetdev
    Contributor

    This issue was closed by #3717.

  4. cchaos commented on Jul 15, 2020

    @cchaos
    Contributor

    I actually would like to keep this one open because of this comment I made on that PR:

    I think is a fine way to allow customization of those flex items and a pattern we have started to establish. Though, I do think we (EUI) should add some top-level quick props for establishing some helpful ratios

  5. reopened this on Jul 15, 2020
  6. github-actions commented on Sep 6, 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.

  7. added
    stale-issue
    on Sep 6, 2021
  8. removed
    stale-issue
    on Sep 7, 2021
  9. self-assigned this
    on Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions