-
Notifications
You must be signed in to change notification settings - Fork 39
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
Item completion should be representative of visited items #304
Comments
I don't think it's ever had inview stuff in it. It would be good to add that to at least the first item. It should not set _isVisited: true until the item has been seen despite _isActive being true. on TextBelowimage: adapt-contrib-narrative/js/NarrativeView.js Lines 69 to 74 in c350f76
on moving to a new slide: adapt-contrib-narrative/js/NarrativeView.js Lines 219 to 221 in c350f76
when the popup is opened: adapt-contrib-narrative/js/NarrativeView.js Lines 301 to 310 in c350f76
I think the first two need fixing with inview. The last one is fine. |
Subject of the issue
Since progressive item completion was introduced, Narrative progress displays as partially complete before the component is in view or interacted with. See screen shot of PLP drawer below on first entering a topic.
Expected behaviour
Narrative has multiple layout options available with different completion criteria (in view or interaction). Item completion should be dependant on the following for each layout:
Default: Selecting
.narrative__controls
(for desktop) or.narrative__strapline-btn
(for mobile)._hasNavigationInTextArea
: Selecting.narrative__controls
._isTextBelowImage
and_isMobileTextBelowImage
: Selecting.narrative__controls
or each item display text being in view._isStackedOnMobile
: Each item display text being in view.Actual behaviour
Regardless of layout, the first item is always complete (before in view or interaction).
The text was updated successfully, but these errors were encountered: