Prettified

This commit is contained in:
Leah Schumann 2023-05-24 10:54:00 -04:00
parent 4dadb01fe8
commit d52e3135fc

View file

@ -28,9 +28,9 @@
</div> </div>
<div class="row-two"> <div class="row-two">
<span <span
v-if="buttonBodyCopy" v-if="buttonBodyCopy"
class="m-0 button-label-sub-copy small" class="m-0 button-label-sub-copy small"
v-html="buttonBodyCopy"></span> v-html="buttonBodyCopy"></span>
</div> </div>
<span v-if="screenReaderOnlyText" class="sr-only"> <span v-if="screenReaderOnlyText" class="sr-only">
{{ screenReaderOnlyText }} {{ screenReaderOnlyText }}
@ -51,8 +51,6 @@ export default {
mixins: [inputButtonWrapperMixin], mixins: [inputButtonWrapperMixin],
props: { props: {
loaderColor: String, loaderColor: String,
}, },
mounted() { mounted() {
this.displayLoader(); this.displayLoader();
@ -67,7 +65,7 @@ export default {
badgeText: "", badgeText: "",
availabilityRating: "None", availabilityRating: "None",
availabilityRatingClass: "", availabilityRatingClass: "",
loaderPosition: "left" loaderPosition: "left",
}; };
}, },
methods: { methods: {
@ -84,13 +82,13 @@ export default {
availabilityRating: { availabilityRating: {
handler(newValue) { handler(newValue) {
if (newValue == "None") { if (newValue == "None") {
this.availabilityRatingClass = "gray" this.availabilityRatingClass = "gray";
} else { } else {
this.availabilityRatingClass = newValue == "Good" ? "green" : "red"; this.availabilityRatingClass = newValue == "Good" ? "green" : "red";
} }
}, },
immediate: true immediate: true,
} },
}, },
components: { components: {
loader, loader,
@ -155,9 +153,9 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 1.5rem; line-height: 1.5rem;
.button-label-copy { .button-label-copy {
font-weight: 500; font-weight: 500;
} }
.availability-indicator { .availability-indicator {