CSR-918 Fix hover states
This commit is contained in:
parent
f4c23cb5b5
commit
053723473c
3 changed files with 27 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<label
|
||||
:class="[buttonWrapperClasses, { 'has-error': errors.length > 0 }]"
|
||||
:class="[buttonWrapperClasses, { 'has-error': errors.length > 0, selected: isChecked }]"
|
||||
:for="buttonId"
|
||||
@focusin="handleFocus"
|
||||
@focusout="handleBlur"
|
||||
|
|
|
|||
|
|
@ -1,24 +1,20 @@
|
|||
html {
|
||||
.has-error {
|
||||
// START HOVER
|
||||
&.list-button-horizontal,
|
||||
&.list-button,
|
||||
&.list-card,
|
||||
&.list-button-horizontal {
|
||||
&.list-card {
|
||||
border: 1px solid $red;
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
|
||||
.button-content {
|
||||
border: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
+ .button-content {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
@include box-shadow-hover($red-200);
|
||||
}
|
||||
}
|
||||
@include box-shadow-hover($red-200);
|
||||
z-index: 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,30 @@
|
|||
.base-input-button {
|
||||
&:hover {
|
||||
&:not(.has-error):hover {
|
||||
cursor: pointer;
|
||||
|
||||
&.list-button,
|
||||
&.list-button-horizontal,
|
||||
&.list-card {
|
||||
input[type="radio"],
|
||||
input[type="checkbox"] {
|
||||
&:not(:checked) {
|
||||
+ .button-content {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
@include box-shadow-hover($blue-300);
|
||||
}
|
||||
}
|
||||
&:not(.selected) {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
@include box-shadow-hover($blue-300);
|
||||
}
|
||||
}
|
||||
|
||||
// &.list-button,
|
||||
// &.list-button-horizontal,
|
||||
// &.list-card {
|
||||
// input[type="radio"],
|
||||
// input[type="checkbox"] {
|
||||
// &:not(:checked) {
|
||||
// + .button-content {
|
||||
// position: relative;
|
||||
// z-index: 4;
|
||||
// @include box-shadow-hover($blue-300);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue