Skip to content

in 4.12.0 Icons behaviour is broken #9570

Closed Answered by waterplea
vytautas-pranskunas- asked this question in Q&A
Discussion options

You must be logged in to vote

Since you did not override hover — the built-in hover kicks in. If you want to completely override a built-in appearance, you should take care of all the states, here's how icon appearance looks like:

[tuiAppearance][data-appearance='icon'] {
    color: var(--tui-text-primary);

    &::before,
    &::after {
        .transition(color);

        color: var(--tui-text-tertiary);
    }

    .appearance-hover({
        &:before,
        &:after {
            color: var(--tui-text-secondary);
        }
    });

    .appearance-active({
        &:before,
        &:after {
            color: var(--tui-text-primary);
        }
    });
}

The .appearance-xxx mixins are available from taiga-ui-local

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@vytautas-pranskunas-
Comment options

@waterplea
Comment options

Answer selected by waterplea
@vytautas-pranskunas-
Comment options

@waterplea
Comment options

@vytautas-pranskunas-
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants