Skip to content
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

Support alt styles for Timelines #386

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

rhystmills
Copy link
Contributor

What does this change?

This exports the AltStyleElementWrapper for use in the TimelineForm in Composer. We may want to move this to Composer in the long run, but I'm leaving that for a future optimisation.

It also adds a flex-grow style to ProsemirrorFields, i.e. text, rich text and nested. This won't affect most uses but will cause the text fields to fill their horizontal space in a flex layout.

How to test

This should be a no-op, but you can test locally with my current branch on Composer:
https://github.com/guardian/flexible-content/compare/main...rm/alt-style-timeline

@rhystmills rhystmills requested a review from a team as a code owner April 16, 2024 15:30
Copy link
Contributor

@Georges-GNM Georges-GNM left a comment

Choose a reason for hiding this comment

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

👍
Tried to spot where the flex-grow might have an impact, but couldn't see it affecting the main elements we've got at the moment, so seems fine to me.

@rhystmills rhystmills merged commit 2a1a52b into main Apr 17, 2024
3 checks passed
@rhystmills rhystmills deleted the rm/support-alt-styles-for-timelines branch April 17, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants