Fixed Certain buttons should use a better hover color

Russ

Well-known member
Affected version
2.2
"New posts" on the main forum index works fine on the default style, but it uses this CSS:

Code:
.m-buttonBlockColorVariationSimple(@color)
{
    .m-buttonBorderColorVariation(@color);

    &:not(.button--splitTrigger),
    &.button--splitTrigger > .button-text,
    &.button--splitTrigger > .button-menu
    {
        &:hover,
        &:focus,
        &:active
        {
            background-color: saturate(xf-intensify(@color, 4%), 12%);
        }
    }
}

This approach doesn't do well grey's and potentially other colors, turns it reddish. I'm wondering if there's a better approach to this (I'm aware I can just overwrite it).

Lxz8dff8dG.gif
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.7).

Change log:
Hover variants based on `saturate()` won't work with greys or near greys, so let's focus on `xf-intensify()` instead, and raise the value somewhat to compensate for the loss of the hover saturate
There may be a delay before changes are rolled out to the XenForo Community.
 
Top