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

feat(container): pageWidth characteristics on page containers #519

Merged
merged 2 commits into from
Jul 11, 2019

Conversation

b-n
Copy link
Member

@b-n b-n commented Jul 10, 2019

Not sure if this maps a lot of sense to do it this way, but I can imagine some pages want to have a "cover" format. I'm not sure on the right words to use, or whether you want to achieve it this way, but just an idea. The main use case is for something like Maps where you want it to cover the whole width of the page, and not be boxed into the container size.

@b-n b-n requested review from BenGamma and chrismclarke July 10, 2019 07:45
b-n added a commit that referenced this pull request Jul 10, 2019
@b-n b-n mentioned this pull request Jul 10, 2019
@@ -14,49 +14,57 @@ export interface IPageMeta {
title: string
description: string
exact?: boolean
fullPageWidth: boolean
Copy link
Member

Choose a reason for hiding this comment

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

Should this be optional? (fullPageWidth?:boolean)

I think it's right how the default behaviour is the standard max-width value, and this is essentially an optional override. We could also remove the fullPageWidth: false from any of the how-tos not implementing this feature

Copy link
Member

@chrismclarke chrismclarke left a comment

Choose a reason for hiding this comment

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

Sounds like a useful feature, nice. I think just make it an optional override (remove where not used) to save a few lines of code.

@b-n
Copy link
Member Author

b-n commented Jul 11, 2019

@chrismclarke I've pushed the optional change, is this what you meant?

@BenGamma BenGamma merged commit 10e5a21 into module/map Jul 11, 2019
@chrismclarke chrismclarke deleted the feat/module/map/pageWidth branch July 12, 2019 17:48
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.

3 participants