shell icon indicating copy to clipboard operation
shell copied to clipboard

Create a "disabled" Mixin

Open chris-pearce opened this issue 8 years ago • 0 comments

There are styles common to when an element is in a disabled state so we should handle this via a mixin to keep things DRY, which can reside in the Shared styles section of _mixins-functions.scss.

Something like this:

@mixin disabled {
    cursor: not-allowed;
    opacity: $shell-g-opacity-disabled;
    pointer-events: none;
}

Applied like this:

&:disabled {
    @include disabled;
    […]
}

See: #96.

@DaveOrDead @davidberner FYI.

chris-pearce avatar Dec 19 '16 02:12 chris-pearce