-
Notifications
You must be signed in to change notification settings - Fork 72
Add ability to render layout at full page height #124
Comments
One possible option would be to add a I'm also curious with that |
100vh doesn't work across mobile devices, so the fill option would be better. |
We're going to immediately run into the same issue with the ThemeProvider, which provides wraps content in yet another div that would need similar fill styles. If we try and chase down all these wrappers and add fill props to them in order to get appropriate application container sizing, we're just changing one complexity for another. Its seems like it would make sense to either include the ThemeProvider (and anything introduced in the future) with Base by default so that Base can style it. Or we could make another consolidation component that puts Base and the others together, but it seems like that's what Base is trying to do already. We really need a one-stop shop if we want it to be easy to consume, and the one-stop shop should be the single component enforcing the fill styles. |
Including the theme provider within base makes sense to me. |
Talked at scrum, plan is to use terra-theme-provider in the new terra-application component and manage the theme concern at that level instead of terra-base. In terra-base, we discussed using |
I've hit a snag with replacing the div rendered via terra-i18n's
The data-terra-base attribute is used to work around an issue on VoiceOver on iOS and focus traps. The focus trap we use, react-focus-trap, does not prevent users using VoiceOver on iOS from moving focus outside of the focus trap when the use the swipe gesture to navigate. This was an issue with modals, popups, and overlays where the user could move their focus outside of the opened component which is not ideal. To mitigate this, what we've done is allow the user to provide a selector to be used with Here is what the DOM looks like when the abstract modal is open. Given this, I still think it makes sense to remove the data-terra-base attribute and switch to using In the case of the |
That sounds good to me. I think loosing that div in base and the associated styling concerns are worth the tradeoff. We'll just have to find a good place to document those selector expectations. |
This has been resolved with cerner/terra-core#2288 |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
For the terra-layout / terra-application-layout to render at full page height as expected, it's parent containers must be set to have
height:100%;
or its direct parent musth haveheight: 100vh
;However, I know there have been some concerns about setting those styles by default, as they conflict with the xfc / embedded-content-consumer styling.
Using the following config:
Results in a layout that is only as tall as the header.

Looking at the generated markup, both the div#root and the direct child div rendered by the
<Base />
component needheight: 100%
set to render at the full page height, or the modal manager needs itsheight
changed from100%
to100vh
Issue Type
Expected Behavior
Ability to render layout at full page height without custom styles.
Current Behavior
Custom styles are required to render layout at full page height.
The text was updated successfully, but these errors were encountered: