Merge pull request #216 from Safelite/CSR-262-error-styling
CSR-266 Fix list-card colors and focus/active state of secondary button.
This commit is contained in:
commit
dc75bef8e8
2 changed files with 20 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<button
|
<button
|
||||||
:aria-disabled="isDisabled"
|
:aria-disabled="isDisabled"
|
||||||
class="btn d-flex align-items-center py-3 px-2"
|
class="btn d-flex align-items-center py-3 px-2"
|
||||||
:class="[isPrimary ? 'btn-primary' : 'btn-secondary',isFloat ? 'float-end' : '']"
|
:class="[isPrimary ? 'btn-primary' : 'btn-secondary',isFloat ? 'float-end' : '', isLoaderDisplayed ? 'has-loader' : '']"
|
||||||
@click="clicked()"
|
@click="clicked()"
|
||||||
>
|
>
|
||||||
<span class="m-0">{{ this.buttonText }}</span>
|
<span class="m-0">{{ this.buttonText }}</span>
|
||||||
|
|
@ -102,8 +102,9 @@ export default {
|
||||||
// Keyboard focus for accessibility
|
// Keyboard focus for accessibility
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: 0 0 0 3px $white, 0 0 0 5.5px $blue-700;
|
box-shadow: 0 0 0 3px $white, 0 0 0 5.5px $blue-700;
|
||||||
color: $white;
|
color: $blue;
|
||||||
@include blue-gradient;
|
//@include blue-gradient;
|
||||||
|
background: $white;
|
||||||
}
|
}
|
||||||
&:disabled {
|
&:disabled {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
@ -112,6 +113,10 @@ export default {
|
||||||
border: 1px solid $gray-300;
|
border: 1px solid $gray-300;
|
||||||
border-radius: $border-radius-lg;
|
border-radius: $border-radius-lg;
|
||||||
}
|
}
|
||||||
|
&.has-loader {
|
||||||
|
color: $white;
|
||||||
|
@include blue-gradient;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,7 @@ export default {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
|
color: $gray-600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
&.sub-copy {
|
&.sub-copy {
|
||||||
color: $gray-550;
|
color: $gray-550;
|
||||||
|
|
@ -170,6 +171,14 @@ export default {
|
||||||
box-shadow: 0 0 0 1px $blue;
|
box-shadow: 0 0 0 1px $blue;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
}
|
}
|
||||||
|
&:checked + label {
|
||||||
|
p {
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
|
.sub-copy {
|
||||||
|
color: $gray-600;
|
||||||
|
}
|
||||||
|
}
|
||||||
+ label::before {
|
+ label::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue