You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiTableCell] Default table cell alignment in Safari is mixed #4568
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:
changed the title [-]Default table cell alignment in Safari is mixed[/-][+][EuiTableCell] Default table cell alignment in Safari is mixed[/+]on Mar 19, 2021
I tinkered with the markup, briefly, and it didn't seem to be the culprit. Also, the first example in the EUI docs site shows the same result on Safari:
👋 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.
Activity
cchaos commentedon Mar 19, 2021
Can we get a copy/paste of the actual implementation code, or at lease the rendered cell DOM? I feel like this may be specific to the inner child.
[-]Default table cell alignment in Safari is mixed[/-][+][EuiTableCell] Default table cell alignment in Safari is mixed[/+]ryankeairns commentedon Mar 22, 2021
The linked PR provides more context. There are some interesting details in there.
cchaos commentedon Mar 22, 2021
In that PR it looks like the root of problem was tracked to the specific content:
ryankeairns commentedon Mar 22, 2021
I tinkered with the markup, briefly, and it didn't seem to be the culprit. Also, the first example in the EUI docs site shows the same result on Safari:
cchaos commentedon Mar 22, 2021
👍 Ugh, just another place where Safari is way too heavy-handed with their default browser styles.
github-actions commentedon Sep 18, 2021
👋 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.
cchaos commentedon Sep 18, 2021
I'll try to tackle this fix as part of the new Emotion global styles.
cchaos commentedon Oct 18, 2021
I found that the root of the problem was when we converted the first column from rendering a
<td>to a<th>to make it a row header.