-
Notifications
You must be signed in to change notification settings - Fork 8
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
Decoupled flyout region #59
base: develop
Are you sure you want to change the base?
Conversation
…primary nav is a good idea if choosing not to use the primary nav in the drawer, otherwise primary nav goes away entirely
…ter in the clf_navigation_option section
…ve right on sticky mobile
…s by creating a separate containing div for the flyout
… where secondary menu was not expanding on click
…es not poke through visually
…e drawer nav when taller than viewport
… needs to be 100% for scrolling
…g under it on mobile
… obfuscates content. This should be done dynamically on click.
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.
Any chance you could toss in a photo of what this is in the pull request?
@@ -4,3 +4,5 @@ node_modules/ | |||
|
|||
# Postcss-fied CSS files | |||
postcss/ | |||
|
|||
.DS_Store |
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'd suggest moving some of the clean-up changes to their own issue so they can be reviewed as one thing.
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.
Understood.
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've pushed the changes wrt to your comments, Joel. Thanks very much for reviewing.
templates/page/page.tpl.php
Outdated
@@ -224,7 +233,7 @@ | |||
|
|||
</div><!-- /#content --> | |||
</div><!-- /#main --> | |||
<?php print $fluidcontainerend; ?> | |||
<?php // print $fluidcontainerend; ?> |
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.
These comments worry me a bit, usually don't like leaving commented out code.
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.
We override this in our child theme because it breaks pages that want full width backgrounds, but these should be uncommented in megatron, which I've done in my flyout branch and will do in develop fork as a new pull request.
@@ -100,26 +100,6 @@ function megatron_form_system_theme_settings_alter(&$form, &$form_state) { | |||
), | |||
); | |||
|
|||
$form['clf_navigation_option']['clf_sticky_option'] = array( |
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.
What happened to this hunk of code? I don't see "clf_navoption" for example in the new code hunks
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.
This was moved down with the other $form['clf_navigation_option'] options
theme-settings.php
Outdated
@@ -184,7 +164,7 @@ function megatron_form_system_theme_settings_alter(&$form, &$form_state) { | |||
$form['clf_navigation_option']['clf_use_primary_menu_in_drawer'] = array( | |||
'#type' => 'checkbox', | |||
'#title' => t('Use the primary menu in the off-canvas drawer?'), | |||
'#description' => t('This is optional in case you want to use additonal content blocks, such as a menu block, in the off-canvas drawer region.'), | |||
'#description' => t('If not chosen, you should use a menu block or alternate method for main navigation in the off-canvas drawer region.'), |
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 agree that the wording could use clarification, I have a hang-up on "chosen" but otherwise +1
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 changed it to "If you do not use the primary menu in the drawer, you should use a menu block or alternate method for main navigation in the off-canvas drawer region." Hope this is better.
…d overrides it in a child theme and it should be there in megatron
Decoupled flyout region on top of drawer nav in develop branch