-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(documentation): adds open graph tags to storybook header #2205
feat(documentation): adds open graph tags to storybook header #2205
Conversation
|
Preview environment ready: https://preview-2205--swisspost-design-system-next.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should use a different image as the preview. The one used now has overflowing text: https://www.opengraph.xyz/url/https%3A%2F%2Fpreview-2205--swisspost-design-system-next.netlify.app%2F
Here's a collection of splash screen variants, recommended is an image in the format 1200x630.
adds height, width and alt for og:image
I made the image be a reference to our github code repository becasue a relative path cannot be used in the url. This should work in theory. However it cannot yet work in this preview as there is no image in the location atm as it would be added by this PR as well. I just realised It would probably better to convert the image to a datatype so it has a smaller file size an svg would be ideal but I do not know how to convert a png to a svg. I mean there are convertors out there but I do not know which ones I am allowed to use. |
You can choose the file type when exporting from figma. I don't know if all services support svg, I'd stick to png. The png can be further optimised by using https://tinypng.com/. |
This reverts commit edbbf2d.
checked the documentation for twitter cards and saw that they had fallbacks on the respective open graph tags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far, but the splash screen has been changed by Rouven to reflect the accent colors change. Can you update the splash screen from the figma file?
also adjusts the name of the .png file
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There is an anomaly. On the frist page of the review the home--docs the open graph tags seem to have no effect.