Skip to content

Commit

Permalink
Merge main into dev (#707)
Browse files Browse the repository at this point in the history
* fix: pagination: Issues with VisiblePagerCountSize (#610)

* chore: systemuibutton: pass transparent down via props (#611)

* chore(release): 2.36.0

* fix: select: ensure aria attributes target the intended element (#612)

* fix: select: ensure aria attributes target the intended element

* chore: dropdown: add ariaref ut and refine role null check

* chore: dropdown: update role null check to handle all elements

* chore(release): 2.36.1

* fix: stepper: handle scrollIntoView for both layouts on mount (#613)

* chore(release): 2.36.2

* fix: button: pass disruptive down from props to button from defaultbutton (#614)

* fix: dropdown: tweak css slideupin animation (#618)

* fix: dropdown: tweak css slideupin animation

* chore: dropdown: tweak animation curve and revert previous adjustment

* fix: locale: add support for hi locale (#602)

* fix: dropdown: fix visible prop (#616)

* fix: dropdown: fix visible prop

* chore: dropdown: update ut to open dropdown again

* feat: empty: enable themes and adds two additional modes (#619)

* chore: css: organize and annotate global variables (#621)

* chore: css: organize and annotate global variables

* chore: css: remove unused base color sass variables

* chore(release): 2.37.0

* feat: messagebar: add message bar component (#622)

* feat: messagebar: add message bar component

* chore: messagebar: update icons per spec

* chore: messagebar: export component

* chore: messagebar: address pr feedback by adding a mapping

* fix: css: global css variable name alignment with design specification (#625)

* feat: rename background-color to background (#628)

* feat: rename background-color to background

* Use background for button css so that we can have more flexible customizations

* fix: remove changes

* remove changes

* fix: table: fix loading compare and updates default spinner size and position (#627)

* fix: table: fix loading compare and updates default spinner size and position

* chore: table�: inherit spinner div height

* fix: pill: ensure pill heights match latest design specification (#626)

* fix: pill: ensure pill heights match latest design specification

* chore: pill: address pr feedback and move pill border radius to global css var

* feat: table: adds column border and disable row bg hover color props (#624)

* fix: select: ensure medium and large pills fit inside inputs of same size (#630)

* chore(release): 2.38.0

* feat: icon: add icons to support kanban view (#632)

* feat: icon: add icons to support integration system simplification (#634)

* fix: slider: increase vertical hit target and handle segmented gap clicks (#635)

* fix: slider: increase vertical hit target and handle segmented gap clicks

* fix: slider: ensure default behavior of tooltip does not hide on reference click

* fix: select: Update selected option based on defaultValue when isLoading changes. (#631)

Co-authored-by: Dylan <99700808+dkilgore-eightfold@users.noreply.github.com>

* feat: icon: add collapse icon for kanban (#637)

* chore: v2.38.2 hotfix fi to main (#638)

* fix: dropdown: revert useonclickoutside to only toggle in specific conditions

* chore(release): 2.38.1

* feat: custom fonts support via configProvider

* fix: remove unnecessary import

* chore(release): 2.38.2

* chore: semver: revert hotfix versioning ahead of fi

---------

Co-authored-by: Jeff Howard <106610186+jhoward-eightfold@users.noreply.github.com>

* fix: button: ensure loading dots use text color and enable two state loader (#636)

* fix: button: ensure loading dots use text color and enable two state loader

* chore: loader: address pr feedback by removing unneeded rtl code

* chore(release): 2.39.0

* fix: select: revert update selected option based on defaultValue when isLoading (#643)

* chore(release): 2.39.1

* fix: linkbutton: ensure default width matches min and max width (#640)

* fix: matchscore: color contrast and vertical alignment fix up (#641)

* fix: tabs: pill variant color contrast fix up (#642)

* fix: table: various accessibility improvements (#644)

* chore(release): 2.40.0

* fix: select: Update selected option based on defaultValue when isLoading changes (#646)

* fix: picker: color contrast ratio fixes (#647)

* fix: picker: color contrast ratio fixes

* chore: picker: address pr feedback remove unused css vars and selectors

* chore: storybook: update named export order to be more consistent using babel (#649)

* chore: storybook: update named export order to be more consistent using babel

* chore: storybook: removes redundant prop

* chore(deps-dev): bump webpack from 5.64.4 to 5.76.0 (#564)

Bumps [webpack](https://github.com/webpack/webpack) from 5.64.4 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.64.4...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dylan <99700808+dkilgore-eightfold@users.noreply.github.com>

* chore(deps-dev): bump semver from 7.3.5 to 7.5.2 (#650)

Bumps [semver](https://github.com/npm/node-semver) from 7.3.5 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](npm/node-semver@v7.3.5...v7.5.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: slider: ensure tooltip is visually hidden when slider is disabled (#651)

* fix: menu: add htmltype prop to menu item button (#654)

* fix: menu: add htmltype prop to menu item button

* chore: menu: update snaps to account for new default property

* feat: breadcrumb: add breadcrumb component (#629)

* fix: slider: fixes hidetrack and hiderail props typos and ommissions (#656)

* fix: slider: fixes hidetrack and hiderail props typos and ommissions

* chore: slider: adds hidetrack and hiderail unit tests

* chore: slider: swaps hidetrack and hiderail references of segments

* fix: table: updates scrollable div by removing deprecated css property (#655)

* fix: table: updates scrollable div by removing deprecated css property

* chore: table: update snaps

* chore: table: update border to hide in mozilla browsers

* chore: table: updates snaps and sticky unit test

* chore(release): 2.41.0

* feat: selectors: add var theme support to check box radio and toggle (#659)

* feat: selectors: add var theme support to check box radio and toggle

* chore: selectors: reverts transition change to limit scope

* chore: selectors: address pr feedback

* chore: dropdown: adds advanced visibility story and unit tests (#661)

* chore: css: remove redundant font stack sass and use semantic variable (#660)

* feat: persistentbar: support small screens and themes plus custom render (#667)

* feat: persistentbar: support small screens and themes plus custom render

* chore: persistentbar: address peer feedback and add css vars with border opt

* chore: coverage: adds unit tests to components that need them (#670)

* chore: coverage: adds unit tests to components that need them

* chore: coverage: test for skeleton variant

* fix: select: adds fall back and optional chaining to avoid null reference errors at runtime (#669)

* fix: select: adds optional chaining to avoid null reference errors at runtime

* chore: select: fall back to empty array rather than use optional chain

* feat: slider and progress: add ability to visually hide borders (#673)

* feat: slider: add ability to visually hide rail and track borders

* feat: progress: enable discreet theming and border manipulation via props and css

* chore(release): 2.42.0

* feat: infobar: adds bordered prop (#676)

* feat: infobar: adds bordered prop

* chore: infobar: align naming convention of css variables

* chore(deps): bump tough-cookie from 4.0.0 to 4.1.3 (#664)

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dylan <99700808+dkilgore-eightfold@users.noreply.github.com>

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#671)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dylan <99700808+dkilgore-eightfold@users.noreply.github.com>

* chore: documentation: updates readme and contributing markdown files (#677)

* fix: table: adds default overflow back to latest scroll bars mixin (#678)

* chore: codescan: create sonarqube yml

* chore: codescan: update sonarqube yml

* chore: codescan: update sonarqube yml secret

* chore: codescan: update sonarqube yml args

* chore: codescan: update sonarqube yml syntax

* chore: codescan: create sonar project properties file

* chore: codescan: update sonarqube yml defer to properties file

* chore: codescan: move sonar properties file to root (#679)

* chore: codescan: update sonarqube yml to use input rather than env vars

* chore: codescan: revert sonarqube yml change and exclude github secret

* chore: codescan: update sonarqube yml to use pull request target

* chore: codescan: update sonarqube yml pull request type

* chore: publish: update npm publish yml repo email alias

* fix: accordion: fixes scroll bar animation flicker (#680)

* feat: card: update card size prop and remove bunko story (#682)

* chore(release): 2.43.0

* fix: popup: fixes style inheritance of reference element (#675)

* fix: popup: fixes style inheritance of reference element

* chore: popup: handle invalid react element

* feat: badge: add badge size and update button and tab custom css (#672)

* feat: badge: add badge size and update button and tab custom css

* chore: coverage: adds more badge tests

* chore: i18n: exports octuple locales and locale type (#684)

* chore: i18n: exports octuple locales and locale type

* chore: i18n: moves locale to separate entry

* chore: i18n: apply structure

* chore: governance: add security policy (#689)

* fix: tooltip: fixes tooltip toggle on mobile devices (#668)

* fix: tooltip: fixes tooltip toggle on mobile devices

* chore: tooltip: adds click toggle unit test

* chore: coverage: adds tooltip and mobile detector tests

* chore: popup: adds istouching method to test for hybrid devices

* chore: popup: update function name and ensure cloned element props are preserved

* fix: button: moves button transition to global semantic variables (#695)

* chore: icons: add new icon mdiAccountMultiplePlusOutline (#697)

* feat: selectors: adds checkbox indeterminate state and selector pill variants (#694)

* feat: selectors: adds checkbox indeterminate state and selector pill variants

* chore: selectors: export types and add another checkbox unit test

* fix: textarea: ensure grip icon doesn't block mouse drag (#698)

* feat: pickers: changeonblur and button props with option to hide buttons (#696)

* feat: pickers: changeonblur and button props with option to hide buttons

* chore: pickers: adds unit tests and updates showtoday default

* chore(release): 2.44.0

* fix: tooltip: fixes default clone element class names (#699)

* fix: carousel: add controls prop to scroll menu (#705)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ranjith Nori <106535945+rnori-eightfold@users.noreply.github.com>
Co-authored-by: Yash raj chhabra <95337653+ychhabra-eightfold@users.noreply.github.com>
Co-authored-by: Yash Raj Chhabra <ychhabra@eightfold.ai>
Co-authored-by: dcoblentz-eightfold <119535119+dcoblentz-eightfold@users.noreply.github.com>
Co-authored-by: Utsav Singhal <84313406+usinghal-eightfold@users.noreply.github.com>
Co-authored-by: Aryan Mediratta <64970674+aryan-eightfold@users.noreply.github.com>
Co-authored-by: Purushottam Tiwari <133845170+ptiwari-eightfold@users.noreply.github.com>
Co-authored-by: Jeff Howard <106610186+jhoward-eightfold@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Abhishek Gupta <agupta@eightfold.ai>
  • Loading branch information
11 people authored Sep 6, 2023
1 parent ab4e7d2 commit 6cfc301
Show file tree
Hide file tree
Showing 53 changed files with 2,206 additions and 348 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.44.0](https://github.com/EightfoldAI/octuple/compare/v2.43.0...v2.44.0) (2023-08-25)

### Features

- badge: add badge size and update button and tab custom css ([#672](https://github.com/EightfoldAI/octuple/issues/672)) ([af91b66](https://github.com/EightfoldAI/octuple/commits/af91b6699ed9dfd9b38164c706b9c24963c50192))
- pickers: changeonblur and button props with option to hide buttons ([#696](https://github.com/EightfoldAI/octuple/issues/696)) ([0a08831](https://github.com/EightfoldAI/octuple/commits/0a08831ee67893abf8ccbdefb6a6608f6247fcd8))
- selectors: adds checkbox indeterminate state and selector pill variants ([#694](https://github.com/EightfoldAI/octuple/issues/694)) ([7941608](https://github.com/EightfoldAI/octuple/commits/79416083bba75940ff7edabbe2443001021a5036))

### Bug Fixes

- button: moves button transition to global semantic variables ([#695](https://github.com/EightfoldAI/octuple/issues/695)) ([c239873](https://github.com/EightfoldAI/octuple/commits/c239873e033b45257c84e014b554cd9feb1dd6c2))
- popup: fixes style inheritance of reference element ([#675](https://github.com/EightfoldAI/octuple/issues/675)) ([88827e0](https://github.com/EightfoldAI/octuple/commits/88827e0bb38a96495ca03642c97f0ad4e0326a6e))
- textarea: ensure grip icon doesn't block mouse drag ([#698](https://github.com/EightfoldAI/octuple/issues/698)) ([cbfc558](https://github.com/EightfoldAI/octuple/commits/cbfc558aad14ef55b911acde3457921abaca5169))
- tooltip: fixes tooltip toggle on mobile devices ([#668](https://github.com/EightfoldAI/octuple/issues/668)) ([a5cb7ec](https://github.com/EightfoldAI/octuple/commits/a5cb7ec489c80d317f38cb8128025d493d69464e))

## [2.43.0](https://github.com/EightfoldAI/octuple/compare/v2.42.0...v2.43.0) (2023-08-08)

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eightfold.ai/octuple",
"version": "2.43.0",
"version": "2.44.0",
"license": "MIT",
"main": "lib/octuple.js",
"types": "lib/octuple.d.ts",
Expand Down
22 changes: 11 additions & 11 deletions src/components/Breadcrumb/__snapshots__/Breadcrumb.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Breadcrumb Crumb should support string \`0\` and number \`0\` 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -59,7 +59,7 @@ exports[`Breadcrumb Crumb should support string \`0\` and number \`0\` 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -211,7 +211,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -250,7 +250,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -289,7 +289,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -328,7 +328,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -367,7 +367,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -406,7 +406,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -445,7 +445,7 @@ exports[`Breadcrumb Renders without crashing 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down Expand Up @@ -499,7 +499,7 @@ exports[`Breadcrumb should support custom attribute 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-custom="custom-item"
data-reference-id="tooltip--reference"
id="tooltip--reference"
Expand Down Expand Up @@ -538,7 +538,7 @@ exports[`Breadcrumb should support custom attribute 1`] = `
>
<a
aria-disabled="false"
class="link-style full-width primary breadcrumb-link my-breadcrumb-links-class"
class="link-style full-width primary tooltip-reference breadcrumb-link my-breadcrumb-links-class"
data-reference-id="tooltip--reference"
id="tooltip--reference"
role="link"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
font-family: var(--button-font-family);
min-height: max-content;
min-width: max-content;
transition: all $motion-duration-extra-fast $motion-easing-easeinout 0s;
transition: var(--button-transition);
white-space: nowrap;
position: relative;
z-index: 0;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export default {

const Card_Story: ComponentStory<typeof Card> = (args) => <Card {...args} />;

export const Custom_Card = Card_Story.bind({});
export const CustomCard = Card_Story.bind({});

// Storybook 6.5 using Webpack >= 5.76.0 automatically alphabetizes exports,
// this line ensures they are exported in the desired order.
// See https://www.npmjs.com/package/babel-plugin-named-exports-order
export const __namedExportsOrder = ['Custom_Card'];
export const __namedExportsOrder = ['CustomCard'];

const baseCardArgs: Object = {
dropShadow: true,
Expand All @@ -53,7 +53,7 @@ const baseCardArgs: Object = {
classNames: 'my-card-class',
};

Custom_Card.args = {
CustomCard.args = {
...baseCardArgs,
width: '360px',
height: '520px',
Expand Down
1 change: 1 addition & 0 deletions src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ export const Carousel: FC<CarouselProps> = React.forwardRef(
{type === 'scroll' && (
<ResizeObserver onResize={updateScrollMode}>
<ScrollMenu
controls={controls}
nextButton={() => autoScrollButton('next')}
onWheel={handleOnWheel}
previousButton={() => autoScrollButton('previous')}
Expand Down
5 changes: 5 additions & 0 deletions src/components/Carousel/Carousel.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ export interface ScrollMenuProps
* @default 0
*/
containerPadding?: number;
/**
* Whether to display the previous and next controls.
* @default true
*/
controls?: boolean;
/**
* The pixel gap between items.
*/
Expand Down
5 changes: 3 additions & 2 deletions src/components/Carousel/ScrollMenu/ScrollMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const ScrollMenu: FC<ScrollMenuProps> = forwardRef(
apiRef = { current: {} as autoScrollApiType },
children,
containerPadding = 0,
controls = true,
gap = 8,
itemClassNames,
nextButton: _rightArrow,
Expand Down Expand Up @@ -163,7 +164,7 @@ export const ScrollMenu: FC<ScrollMenuProps> = forwardRef(
>
<VisibilityContext.Provider value={context}>
<div className={innerWrapperClassName}>
{!context?.isFirstItemVisible && LeftArrow}
{!context?.isFirstItemVisible && controls && LeftArrow}
<ScrollContainer
classNames={scrollContainerClassNames}
containerPadding={containerPadding}
Expand All @@ -181,7 +182,7 @@ export const ScrollMenu: FC<ScrollMenuProps> = forwardRef(
{children}
</MenuItems>
</ScrollContainer>
{!context?.isLastItemVisible && RightArrow}
{!context?.isLastItemVisible && controls && RightArrow}
</div>
</VisibilityContext.Provider>
</div>
Expand Down
17 changes: 17 additions & 0 deletions src/components/Carousel/Tests/ScrollMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,23 @@ describe('ScrollMenu', () => {

expect(container).toMatchSnapshot();
});

test('Hides LeftArrow, RightArrow', () => {
(useIntersectionObserver as jest.Mock).mockReturnValue({
visibleElementsWithSeparators: defaultItemsWithSeparators,
});

const { container } = setup({
previousButton: PreviousButton,
nextButton: NextButton,
controls: false,
});

expect(container.querySelector('.left-arrow')).toBeFalsy();
expect(container.querySelector('.right-arrow')).toBeFalsy();

expect(container).toMatchSnapshot();
});
});

describe('Events', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ScrollMenu Children and buttons Hides LeftArrow, RightArrow 1`] = `
<div>
<div
class="carousel-auto-scroll"
>
<div
class="carousel-auto-scroll-inner-wrapper"
>
<ul
class="carousel-auto-scroll-container"
style="margin: 0px; padding: 0px;"
>
<li
class="carousel-scroll-menu-item"
data-index="0"
data-key="test1"
style="margin-left: 0px; margin-right: 4px;"
>
<div
data-testid="test1"
>
{"itemId":"test1","isFirstItemVisible":false,"isLastItemVisible":false,"visibleElements":["test1","test2"],"visibleElementsWithSeparators":["test1","item1-separator","test2"],"visibleItems":["test1","item1-separator","test2"],"visibleItemsWithoutSeparators":["test1","test2"],"initComplete":true}
</div>
</li>
<div
aria-hidden="true"
class="carousel-scroll-menu-separator"
data-index="0.1"
data-key="test1-separator"
style="margin-left: 0px; margin-right: 4px;"
/>
<li
class="carousel-scroll-menu-item"
data-index="1"
data-key="test2"
style="margin-left: 0px; margin-right: 4px;"
>
<div
data-testid="test2"
>
{"itemId":"test2","isFirstItemVisible":false,"isLastItemVisible":false,"visibleElements":["test1","test2"],"visibleElementsWithSeparators":["test1","item1-separator","test2"],"visibleItems":["test1","item1-separator","test2"],"visibleItemsWithoutSeparators":["test1","test2"],"initComplete":true}
</div>
</li>
</ul>
</div>
</div>
</div>
`;

exports[`ScrollMenu Children and buttons LeftArrow, ScrollContainer, MenuItems, RightArrow 1`] = `
<div>
<div
Expand Down
Loading

0 comments on commit 6cfc301

Please sign in to comment.