Skip to content

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

@mbondyra

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions