Skip to content
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
4 changes: 3 additions & 1 deletion lib/core/BlogPostLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class BlogPostLayout extends React.Component {
const fbComment = this.props.config.facebookAppId &&
this.props.config.facebookComments && (
<div className="blogSocialSectionItem">
{/* Facebook SDK require 'fb-comments' class */}
<div
className="fb-comments"
data-href={
Expand All @@ -40,8 +41,9 @@ class BlogPostLayout extends React.Component {

const fbLike = this.props.config.facebookAppId && (
<div className="blogSocialSectionItem">
{/* Facebook SDK require 'fb-like' class */}
<div
className="fbLike"
className="fb-like"
data-href={
this.props.config.url +
this.props.config.baseUrl +
Expand Down
2 changes: 1 addition & 1 deletion lib/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ input::placeholder {
padding-bottom: 5px;
}

.fbLike {
.fb-like {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment here that we shouldn't change this class because it's determined by FB SDK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be in the js ? the css here just add extra style

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but I renamed it thinking it was our own styling 😥

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sure, let's write it in the JS then.

display: block;
margin-bottom: 20px;
width: 100%;
Expand Down