Skip to content

[EuiDataGrid] cannot apply text alignment styles to Data grid headers #7669

Closed

Description

@mbondyra

Describe the bug

Somewhere between the v91 and v92 we lost the ability to apply custom textAlign styles to the datagrid header by adding custom styles to display column property.
Here's v91 demo and v92 demo.
Screenshot 2024-04-10 at 13 43 30

Impact and severity
Original issue from Lens: elastic/kibana#180103

Additional context
It happened because we removed flex-grow:1 style from this element so the child doesn't align to the whole container now:

Screenshot 2024-04-10 at 12 20 25

I wonder if it's safe to just add it again? We could fix it from Kibana side overriding the styles, but it's an ugly way and can cause more problems in the future.

Activity

  1. added
    ⚠️ needs validation
    on Apr 10, 2024
  2. removed
    ⚠️ needs validation
    on Apr 16, 2024
  3. cee-chen commented on Apr 16, 2024

    @cee-chen
    Contributor

    Likely caused by #7371. As a heads up EUI's plate is relatively full so we won't be able to get to this for another 2 weeks or so - please let us know if your timeline needs are more urgent.

    Also if you need the fix backported to a specific Kibana release let us know as well.

  4. self-assigned this
    on Apr 29, 2024
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