Skip to content

[EuiTableCell] Default table cell alignment in Safari is mixed #4568

@ryankeairns

Description

@ryankeairns

In elastic/kibana#92374 , it was noted that the table cell content alignment is inconsistent on Safari. Using the align prop works for right and center, as that applies an explicit class, but left and start appear to have no effect (i.e. they are left to the browser default, I suspect).

In effect, this means you cannot reliably for a left/start alignment on Safari. The likely code in question is below:

.euiTableCellContent {
overflow: hidden; /* 4 */
display: flex;
align-items: center; /* 1 */
padding: $euiTableCellContentPadding; /* 2 */
}
.euiTableCellContent__text {
@include euiTextBreakWord; /* 4 */
min-width: 0;
text-overflow: ellipsis;
}
.euiTableCellContent--alignRight {
justify-content: flex-end;
text-align: right;
}
.euiTableCellContent--alignCenter {
justify-content: center;
text-align: center;
}

Screenshot from Safari

Screen Shot 2021-02-23 at 12 01 48 PM

Metadata

Metadata

Assignees

Labels

⚠️ needs validationFor bugs that need confirmation as to whether they're reproducible

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