Merge pull request #349 from Safelite/feature/digital/SSR-513
refactored to get rid of the !important
This commit is contained in:
commit
132c8e67b7
2 changed files with 18 additions and 10 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue