-
Notifications
You must be signed in to change notification settings - Fork 5
Component Request - ScrollWrapper #696
Copy link
Copy link
Open
Labels
featurefeaturefeature
Description
Component Description
This component is a wrapper component to display other [child] components as horizontal scrollable elements. Conceptually, the component is similar to the MobileDrawer component (storybook, code) which wraps other components.
Design
Desktop:
Mobile:
Slots
- A slot for the scrolled child item/component
Props
None
Developer Tips
- Use Vuetify component library's
Slide Groupcomponent: https://vuetifyjs.com/en/components/slide-groups/- The following Vuetify elements are needed:
v-sheet,v-slide-group,v-slide-group-item - See Vuetify playground
- The following Vuetify elements are needed:
- Our component library already has Vuetify configured from when we implemented the
BaseCalendarcomponent- Update the Vuetify plugin
/plugins/vuetify.tswith the new elements:VSlideGroup,VSlideGroupItem - The corresponding Vuetify plugin in Nuxt will also need to be updated with these elements
- Update the Vuetify plugin
- Though not visible in the design, there should be a
previousarrow displayed once scrolling-clicking begins and initial/first element is out of view (that is, there should be a way to scroll back) - Both arrows are not visible in mobile view
- Vuetify arrow icons can be replaced with custom icons: https://vuetifyjs.com/en/components/slide-groups/#custom-icons
- Otherwise, see example of overriding Vuetify arrow icons with CSS in
BaseCalendar(For the component, we were not able to easily replace Vuetify's arrows with our own arrow icons)
- Otherwise, see example of overriding Vuetify arrow icons with CSS in
- Test component in Storybook with inner components such as
SectionTeaserCard,FlexibleCardWithImage
Events
- Handled by Vuetify component
- Clicking on arrows should scroll items forward or backward
Child components
- Handled by the slot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurefeaturefeature


