RSS Feed/News core_input.less use of 'disabled' attribute selector instead of ':disabled' pseudo-class

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
33,199
Points
823

Reputation:

core_input.less uses:
CSS:

Code:
.input
{
    &[disabled]
    {
        .xf-inputDisabled();
    }
}

Instead of:
CSS:

Code:
.input
{
    &:disabled
    {
        .xf-inputDisabled();
    }

&:hover:disabled
    {
        .xf-inputDisabled();
    }
}

.inputNumber-button
{
    &:disabled
    {
        .xf-inputDisabled();
    }

&:hover:disabled
    {
        .xf-inputDisabled();
    }
}

This causes unexpected behavior, like a numberbox's primary input and control buttons not responding to...

Read more

Continue reading...
 
Status
Not open for further replies.
Top