When using text-overflow: ellipsis
the color of ellipsis always turns black when text won’t fit at all
It is fine on light themes
<style>
.buttons-holder {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
sp-action-button {
display: flex;
flex-direction: row;
justify-content: start;
flex-grow:1;
flex-basis:0;
min-width: 32px;
max-width: max-content;
margin: 2.5px;
white-space: nowrap;
}
sp-action-button .label {
font-size: 1em;
font-weight: inherit;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
<sp-action-group>
<sp-action-button>
<div slot="icon" class="icon">
<svg xmlns="http://www.w3.org/2000/svg" height="18" viewBox="0 0 18 18" width="18">
<rect width="18" height="18" style="fill:transparent;stroke: currentColor;stroke-width: 2;" />
<path d="M12,0 L18,0 L18,18 L6,18Z" />
</svg>
</div>
<div class="label">Huge label</div>
</sp-action-button>
</sp-action-group>