CSR-933 fix error styles.

This commit is contained in:
Bryan Mauger 2022-11-11 09:04:57 -05:00
parent 03ffdf1878
commit 6d233b521d
2 changed files with 53 additions and 46 deletions

View file

@ -3,6 +3,7 @@ html {
// START HOVER // START HOVER
&.list-button-horizontal, &.list-button-horizontal,
&.list-button, &.list-button,
&.list-button.list-group,
&.list-card { &.list-card {
border: 1px solid $red; border: 1px solid $red;
position: relative; position: relative;
@ -16,6 +17,9 @@ html {
@include box-shadow-hover($red-200); @include box-shadow-hover($red-200);
z-index: 5; z-index: 5;
} }
input[type="radio"]:focus + .list-button-content {
box-shadow: 0 0 0 2.5px $red;
}
} }
&.ui-radio { &.ui-radio {
@ -26,6 +30,11 @@ html {
} }
} }
} }
.form-check-input {
&:focus {
@include box-shadow-hover($red-200);
}
}
// END HOVER // END HOVER
&.list-button, &.list-button,

View file

@ -60,56 +60,54 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.list-group { .loader {
.loader { position: absolute;
position: absolute; }
} .list-button {
&.list-button { outline: none;
outline: none; input[type="radio"],
input[type="radio"], input[type="checkbox"] {
input[type="checkbox"] { position: static; //override bootstrap
position: static; //override bootstrap
&:focus-visible + .list-button-content { &:focus-visible + .list-button-content {
box-shadow: 0 0 0 2.5px $blue; box-shadow: 0 0 0 2.5px $blue;
} }
&:focus + .list-button-content { &:focus + .list-button-content {
box-shadow: 0 0 0 2.5px $blue; box-shadow: 0 0 0 2.5px $blue;
} }
&:checked + .list-button-content { &:checked + .list-button-content {
color: $black; color: $black;
font-weight: 500; font-weight: 500;
background: $blue-100; background: $blue-100;
box-shadow: 0 0 0 1px $blue; box-shadow: 0 0 0 1px $blue;
} }
&:checked:focus + .list-button-content { &:checked:focus + .list-button-content {
box-shadow: 0 0 0 2.5px $blue; box-shadow: 0 0 0 2.5px $blue;
} }
&:checked + .list-button-content p, &:checked + .list-button-content p,
&:checked + .list-button-content span { &:checked + .list-button-content span {
font-weight: 500; font-weight: 500;
} }
&:checked + .list-button-content span:nth-child(2) { &:checked + .list-button-content span:nth-child(2) {
font-weight: 400; font-weight: 400;
color: $gray-600; color: $gray-600;
}
} }
} }
.list-button-content { }
color: $gray-600; .list-button-content {
position: relative; color: $gray-600;
background: $white; position: relative;
transition: all 150ms linear; background: $white;
border-radius: $border-radius-lg; transition: all 150ms linear;
border: 1px solid $gray-500; border-radius: $border-radius-lg;
width: 100%; border: 1px solid $gray-500;
outline: none; width: 100%;
outline: none;
span { span {
&.small { &.small {
font-size: 0.75rem; font-size: 0.75rem;
color: $gray-550; color: $gray-550;
}
} }
} }
} }