The z-index property seems to be having no effect on the elements within the ion-segment-button.
I attempted to adjust the positions of the elements and set the z-index to 999999 with the button z-index set to -1. However, this solution did not work as expected.
<ion-segment-button
class="test">
<ion-icon name="document-text"></ion-icon>
<ion-label>Test</ion-label>
<div id="helpParent" (click)="test2()" style="
background: red;
width: 200px;
height: 200px;
z-index: 999999;
"><i id="helpChild" (click)="test2()" class="far align-vertically fa-question-circle"
style="cursor: pointer;width: 24px;height: 24px;font-size: 20px;color: rgb(6, 54, 85);margin-left: 10px;z-index: 9999;"></i>
</div>
</ion-segment-button>