adaptlearning / adapt-contrib-narrative

A component that displays an image gallery with accompanying text
GNU General Public License v3.0
5 stars 39 forks source link

New: completion icon added to progress indicators (fixes #288) #301

Closed kirsty-hames closed 2 months ago

kirsty-hames commented 2 months ago

Fixes https://github.com/adaptlearning/adapt-contrib-narrative/issues/288

New

The overall .narrative__progress size has increased from 12px to 16px. The screen shots shared in the issue have larger icons (@icon-size 1.5rem for consistency with other component item visited ticks) however this limits the amount of items we can comfortably fit visually and the preference was to keep these small.

Update

Dependency

Vanilla narrative.less will need updating to include color and border-color styles. I'll update the testing instructions when a Vanilla PR has been raised. Issue raised.

Testing

  1. Install issue/288 branch.
  2. Comment out .narrative__progress background-color styles in Vanilla narrative.less. For example:

    &__progress {
    //background-color: @item-color;
    border-radius: 50%;
    }
    
    // &__progress.is-visited {
    //   background-color: @visited;
    // }
    
    // &__progress.is-selected {
    //   background-color: @item-color-selected;
    // }
  3. Test the following Narrative layouts on both large and small screen widths. Screen shots added for each configuration.

In component.json, default layout:

    "_hasNavigationInTextArea": false,
    "_isMobileTextBelowImage": false,
large_default small_default

Enable _hasNavigationInTextArea:

large_nav-in-text-area

Enable _hasNavigationInTextArea and _isMobileTextBelowImage:

small_nav-in-text-area_and_text-below-image

^ mobile view (based on 375px screen width) supports 9 items before progress indicators are wrapped.

kirsty-hames commented 2 months ago

FYI @oliverfoster and @StuartNicholls as you were involved in the issue discussion.

oliverfoster commented 2 months ago

image

Would you be able to increase the default contrast for the completed ticks please?

kirsty-hames commented 2 months ago

image

Would you be able to increase the default contrast for the completed ticks please?

Those ticks should be white. Missing color property added in 81d7c5a.