The only element

Written by

in

That is one way to check if it’s the only element, being the first and last child at the same time…

.o-inline {
    &:where(:has(i:first-child:last-child)) {
        opacity: var(--o-mail-ActionList-Button-opacity);
    }
}
Code language: SCSS (scss)