-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add crossword layout #13001
base: main
Are you sure you want to change the base?
Add crossword layout #13001
Conversation
this is a first pass, it needs work
and use JSdoc for editor assistance
This reverts commit f3b9feb.
Size Change: +1.11 kB (+0.13%) Total Size: 885 kB
ℹ️ View Unchanged
|
# Conflicts: # dotcom-rendering/src/types/content.ts # dotcom-rendering/src/types/frontend.ts
…s and out of handle.article.web
# Conflicts: # dotcom-rendering/package.json # dotcom-rendering/src/components/Crossword.importable.tsx # dotcom-rendering/src/lib/articleFormat.ts # dotcom-rendering/src/types/article.ts # pnpm-lock.yaml
…ct-crossword - update lockfile
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
@@ -160,6 +161,10 @@ const getRenderedTokens = ( | |||
); | |||
} | |||
|
|||
if (design === ArticleDesign.Crossword && renderedTokens.length > 0) { | |||
return [<Fragment key="set-by">Set by: </Fragment>, ...renderedTokens]; |
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.
Its not clear why we need this Fragment? Also keys are normally used to set a unique identifier for items in a list so not sure about the use case here.
WIP of a crossword-specific layout.
requires #12925. also, a lot of this may be taken care of by #13083.