Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAV] Change the classname of ContentBlock from display-4 to contentTitle #908

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="contentBlock">
<h2 class="display-4" *scText="rendering.fields.heading"></h2>
<h2 class="contentTitle" *scText="rendering.fields.heading"></h2>
<div class="contentDescription" *scRichText="rendering.fields.content"></div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ a[target='_blank']:after {
are set to edit mode.
*/
.scChromeData, .scpm { display: none !important; }

/*
Style for default content block
*/
.contentTitle {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@ a[target='_blank']:after {
if you run the app in connected mode while the Sitecore cookies
are set to edit mode.
*/
.scChromeData, .scpm { display: none !important; }
.scChromeData, .scpm { display: none !important; }

/*
Style for default content block
*/
.contentTitle {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Text, RichText } from '@sitecore-jss/sitecore-jss-react';
*/
const ContentBlock = ({ fields }) => (
<div className="contentBlock">
<Text tag="h2" className="display-4" field={fields.heading} />
<Text tag="h2" className="contentTitle" field={fields.heading} />

<RichText className="contentDescription" field={fields.content} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ a[target='_blank']:after {
.scpm {
display: none !important;
}

/*
Style for default content block
*/
.contentTitle {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="contentBlock">
<sc-text tag="h2" class="display-4" :field="fields.heading" />
<sc-text tag="h2" class="contentTitle" :field="fields.heading" />
<sc-rich-text class="contentDescription" :field="fields.content" />
</div>
</template>
Expand Down