[role=tablist] {
    display: flex;
    overflow: hidden;
    justify-content: stretch;
    text-transform: uppercase;
    align-content: stretch;
    [role=tab] {
        text-align: center;
        cursor: pointer;
        line-height: 3;
        width: 100%;
        white-space: nowrap;
        &[aria-selected=true] {
            color: #e98024;
            box-shadow: inset 0 -3px 0 0 #e98024;
        }
        img {
            width: 1.75rem;
            margin: .5rem auto 0;
        }
    }
}

[role=tablist].vertical {
    min-width: 3rem;
    flex-direction: column;
    align-content: flex-start;
    *[role=tab] {
        display: flex;
        flex-direction: column;
        flex: inherit;
        &[aria-selected=true] {
            box-shadow: inset 3px 0 0 0 #e98024;
        }
    }
}

[role=tablist] {
    display: flex;
    overflow: hidden;
    text-transform: uppercase;
    [role=tab] {
        text-align: center;
        cursor: pointer;
        padding: 1rem .25rem;
        width: 100%;
        white-space: nowrap;
        &[aria-selected=true] {
            color: #e98024;
            box-shadow: inset 0 -3px 0 0 #e98024;
        }
        img {
            width: 1.75rem;
            margin: .5rem auto 0;
        }
    }
}

[role=tablist].vertical {
    min-width: 3rem;
    flex-direction: column;
    align-content: flex-start;
    *[role=tab] {
        display: flex;
        flex-direction: column;
        flex: inherit;
        &[aria-selected=true] {
            box-shadow: inset 3px 0 0 0 #e98024;
        }
    }
}

Make tabs fit better in small spaces
Make tabs fit better in small spaces
