This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Create a FacebookTextContainer component #46
Labels
Milestone
Comments
andizer
changed the title
Create a FacebookTextContainer
Create a FacebookTextContainer component
Jan 21, 2019
This was referenced Mar 13, 2019
Seems to me Facebook does truncate the title and shows just two lines: I've only tested it editing the markup in the browser, so it should be tested better with a real post with a very long title. |
3 tasks
There was some overlapping problems so they were handled and closed in #45 . |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
FacebookTextContainer
should contain the following components:FacebookSiteName
(Create a FacebookSiteName component yoast-components#807) (andFacebookAuthorName
(Create a FacebookAuthorName component #42))FacebookTitle
(Create a FacebookTitle component #40)FacebookDescription
(Create a FacebookDescription component #41)Depending on the image type the container should have the following dimensions:
Styling
The component should have the following CSS props:
The portrait/square modus will have the following rules:
Inner container
The component should have a 'inner container'.
When the Preview is in portrait or square mode the css the inner container has to following props:
When its landscape the inner container has the following CSS props:
FacebookSiteName and the FacebookAuthorName
The
FacebookSiteName
and theFacebookAuthorName
components must be wrapped in a div with the following CSS rules:When the view is landscape it should have the following CSS specs:
For the square/portrait it should have:
FacebookTitle and FacebookDescription
Sidenotes about the length of the title and description
There is something vague about the title. Facebook has no description about the max length. When the title is long it will be shown on multiple lines (mostly 2 lines). When this is the case the description will be (probably) shortened.
When the title is short (1 line) in most cases the description will be longer. There is no documentation about this behaviour (it's my own observation)
Wrapping in a div
The
FacebookTitle
andFacebookDescription
components should be wrapped in a div. Thisdiv
should have the following CSS specs when in portrait mode:How its been build in Facebook:
The description is always rendered, but might become invisible because of an
overflow:hidden
For the
FacebookTitle
andFacebookDescription
we have to create a container that is placed in a 'textcontainer'Examples:
Portrait modus. Container with text has a width of 318px. Blurred most of it because I used a random search result of a portrait image
Square mode. Container with text has a width of 318px and a height of 136px
With no image the description seems to be longer
Parent #47
Parent of Yoast/yoast-components#807
Parent of #42
Parent of #41
Parent of #40
To do
The text was updated successfully, but these errors were encountered: