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
UP-4622: Add offcanvas stickynav flyout #598
UP-4622: Add offcanvas stickynav flyout #598
Conversation
👍 |
Great to have this! I hope to have a chance to look shortly. |
<xsl:otherwise> | ||
<xsl:attribute name="class">container-fluid</xsl:attribute> | ||
</xsl:otherwise> | ||
</xsl:choose> |
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.
FYI One common approach that is done in other areas is to have something like
https://github.com/Jasig/uPortal/blob/uportal-4.2.1/uportal-war/src/main/resources/layout/theme/respondr/content.xsl#L94-L99
which is used later like at https://github.com/Jasig/uPortal/blob/uportal-4.2.1/uportal-war/src/main/resources/layout/theme/respondr/content.xsl#L119. This insures there is one place for specifying the CSS classes and HTML markup to reduce the chance someone later on will change one HTML element or attribute but forget to change the other. It's an alternate to what you have above but I think it reads a little easier IMHO.
Oh, and I see you do that later on.
+1 Overall looks great! I'm looking forward to seeing this merged in. |
Hi James, hi All In fact my approach was at two level with OffCanvas : First, make it optional, I don't want to disturb people who like the vertical dropdown navigation on mobile. So, that's why all the offcanvas css classes are separated from the other css classes Also the second level is to manage the future possibility to have perhaps on mobile rightOffcanvas, topOffcanvas, leftOffcanvas or downOffcanvas James you can improve the code as you want. I will improve maybe the code in a couple of weeks with swipe right and swipe left functions on mobile but I need to test this, if it won't enter in conflict with your pull resquest with drag 'n drop portlet you've made which is very cool. I'm doing baby steps I have a doubt and a question for Drew about region.header-top what's in it ? and for which purpose, because the sticky nav will be perhaps positionned on it on mobile... Sorry for "#portalCASLogin" it was the end of friday night... |
@cousquer sounds great. Baby steps are good (and encouraged 😄 ). RE the regions: see https://wiki.jasig.org/display/UPC/Respondr+Regions+Feature. Currently there are no portlets in the quickstart data set that use header-top. However it is available for use as a general region. I know we are using it for a multi-tenant client where the top has a logo branding that applies to all college campuses, and header left and right are used for a college-specific branding area and search. |
@drewwills |
+1 |
+1 And more with our new version of the portal we will use this PR |
This is definitely a must have |
Hi guys, why this hasn't been merged yet ? Any compatibility issues ? Cheers |
Hi @cervomix |
<channel fname="logout-launcher" unremovable="false" hidden="false" immutable="false" ID="n130"/> | ||
<channel fname="portal-greeting" unremovable="false" hidden="false" immutable="false" ID="n120"/> | ||
<channel fname="notification-icon" unremovable="false" hidden="false" immutable="false" ID="n110"/> |
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.
Why reorder portal-greeting & notification-icon? (Can probably answer for myself once I review the changes... just making a note.)
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.
It was to preserve the visual order of the items because Ihave change the css alignment rules
I'd say this implementation of the small-display menu is vastly preferable to the old version. I'm not sure we need the old version at all... I think I'm inclined to cut it, in the interests of simplicity. |
Could it be integrated in the upcomming release ? |
@jgribonvald -- That is my hope & intention. |
thanks a lot Drew for that ! |
Add sticky nav like mySail but with notification and greeting on mobile
Restore optional Fly-out menu bootstrapized. (the menu toggle is on the left of each tab because it won't interfere with delete tab link)
Add a new optional off-canvas menu for the main nav.
in navigation.xsl you just need to set true for these param
Old Version
### New Version