-
Notifications
You must be signed in to change notification settings - Fork 110
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
TDP Activity Search: Mobile customization #6427
Conversation
@karenkitchens FYI, I merged the main branch into this PR so that our dev preview deployment would hopefully complete successfully. |
- Moves logic to own module - Adds option to the "expandable" template - Makes the search module a better team player by not initializing itself and instead allowing the index module to do this.
Formalize logic into feature of the template organism
@Scotchester FYI we've reworked this a bit and added a test. |
* so some elements won't be expanded by default. | ||
*/ | ||
function beforeExpandableTransitionInit() { | ||
document.querySelectorAll( '.' + MOBILE_COLLAPSED_CLASS ).forEach( el => { |
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 think this line is breaking the functionality of the filters in IE 11. None of the faceting works as it used to, and I see this error in the console:
Object doesn't support property or method 'forEach'
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.
(Affecting desktop widths, just to be clear.)
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.
@Scotchester I'll look into this right away. Is IE11 the baseline or (gulp) earlier versions?
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.
Thanks, Steve! For JS-required functionality like this, we only need to support IE 11.
cfgov/unprocessed/apps/teachers-digital-platform/js/expandable-mobile.js
Outdated
Show resolved
Hide resolved
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.
That did the trick! I'll get this merged and try to deploy it tomorrow.
TDP activity search need to be customized since the desktop version of search had too many options. This will help folks move through the search more effectively when on mobile
Additions
Added mobile classes to html
Added a rule for changing mobile facets
How to test this PR
Notes and todos
Need to move the JS rule to somewhere more appropriate
Checklist
Front-end testing
Browser testing
Visually tested in the following supported browsers:
Accessibility
Other