Merge pull request #349 from Safelite/feature/digital/SSR-513

refactored to get rid of the !important
This commit is contained in:
Jason Wheeler 2023-06-22 14:49:53 -04:00 committed by GitHub
commit 132c8e67b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 10 deletions

View file

@ -31,7 +31,8 @@ import buttonBack from "@/iss-components/site-sub-header/button-back/button-back
cmsWidgetName: String, cmsWidgetName: String,
hasBackButton: Boolean, hasBackButton: Boolean,
justification: String, justification: String,
issContainingPage: String issContainingPage: String,
darkGraySubText: Boolean,
}, },
computed: { computed: {
content() { content() {
@ -53,9 +54,15 @@ import buttonBack from "@/iss-components/site-sub-header/button-back/button-back
'justify-content-center'; 'justify-content-center';
}, },
alternateFormatting() { alternateFormatting() {
return (this.issContainingPage?.toLowerCase() === 'service-packages') ? //override for service-packages unique style
'service-packages-subtext mt-4 mb-2 px-5' : if (this.issContainingPage?.toLowerCase() === 'service-packages')
'small'; {
return 'service-packages-subtext mt-4 mb-2 px-5';
}
else
{
return this.darkGraySubText ? "dark-gray" : "light-gray";
}
} }
}, },
methods: { methods: {
@ -84,9 +91,14 @@ import buttonBack from "@/iss-components/site-sub-header/button-back/button-back
color: inherit; color: inherit;
} }
} }
p.small { p.light-gray {
color: $gray-550; color: $gray-550;
} }
p.dark-gray {
color: $darker-gray;
}
p.service-packages-subtext { p.service-packages-subtext {
font-weight: 500 !important; font-weight: 500 !important;
line-height: 24px; line-height: 24px;

View file

@ -12,6 +12,7 @@
cmsWidgetName="SiteSubHeaderWidget" cmsWidgetName="SiteSubHeaderWidget"
class="siteSubHeader" class="siteSubHeader"
justification="center" justification="center"
darkGraySubText
/> />
<vehicleQuestion <vehicleQuestion
@ -224,11 +225,6 @@ export default {
} }
.siteSubHeader { .siteSubHeader {
margin-top: 1.5rem; margin-top: 1.5rem;
p.small {
color: #525656 !important;
}
} }
.subheader-secondary { .subheader-secondary {