This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds Brand component to Psammead #105
Adds Brand component to Psammead #105
Changes from 30 commits
b1504b8
54161aa
dd70e7c
d441dec
4421697
0d32119
db4d127
9c1f8f8
5d39cd0
907dc0a
9e3ad3d
7afefa6
e352655
17c9231
a98f58e
10d77e1
2e17eb8
f55d28d
c7eec33
4303645
fcf5dec
e46a6d0
decfb44
cf0f203
7a5c162
2f6a28c
fcea0b5
f7ba1b5
25d29a4
219498d
0d414fa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
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 noticed that you removed
babel-plugin-styled-components
from thepackage.json
in this PR.We currently import
babel-plugin-styled-components
since it gives meaningful names to the style classes. Our recommended.babelrc
config for this is here:We use it in Simorgh, but we haven't yet added to Psammead.
"ssr": true
ensures that when you have server-side rendering, that there won't be a checksum mismatch between the StyledComponent class on the server render and client render."filename": false
This is to shorten the classes, since otherwise we'll haveThinking about this, I think it'd be better for this information to live in our main Psammead Readme.md rather than in component readmes, since otherwise we'd have to include it in each component, which would be quite repetitive.
I will open a separate issue for this. In the meantime, I'd appreciate it if you didn't remove
babel-plugin-styled-components
from the setup.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.
There's already an issue for this: #159.
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.
Apologies, you meant the documentation issue, which you raised in #162.
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.
Apologies @radiocontrolled - I agree with Sareh, let's add this back in.
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.
👍
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.