I'm trying to make my SPANs to expand and shrink evenly and hide the overflow if the space runs out. For some reason, they behave differently than expected, as presented in the fiddle.
a.action-button {
display: flex;
flex: 1 1 0;
justify-content: space-between;
border: 4px solid thistle;
}
a.action-button>span {
display: flex;
flex: 1 1 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
I can't explain why the components don't shrink thistle colored ones. I'm also surprised that the royalblue one gets hidden on overflow despite the style not being set to that. I sense there's a connection between those two but I can't explain how.