Skip to content

Colors in .item-color-visited() using deprecated variables #590

@swashbuck

Description

@swashbuck

Subject of the issue

The .item-color-visited() mixin still references the deprecated variables @visited and @visited-inverted. All of the other styles here use the newer @item-foo variables.

.item-color-visited() {
background-color: @visited;
color: @visited-inverted;
}

@kirsty-hames Is there a reason why we've kept this one using the deprecated variables? If not, should they now use @item-color-visited and @item-color-inverted-visited? There is a note that @visited is only used by presentation components. However, as it's marked deprecated, is the assumption that it will eventually be removed?

Note that I was specifically looking at Accordion here.

// DEPRECATED
// replaced by @item-color-visited and @item-color-inverted-visited
// Note: @visited is only used by presentation components
@visited: darken(@item-color, 15%);
@visited-inverted: @item-color-inverted;
//
@item-color-visited: @visited;
@item-color-inverted-visited: @visited-inverted;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Awaiting Response

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions