Skip to content
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

Carousel: Storybook updates and fixing exports/focus #32457

Merged

Conversation

Mitch-At-Work
Copy link
Contributor

@Mitch-At-Work Mitch-At-Work commented Sep 4, 2024

Previous Behavior

  • Storybook was a basic default example
  • Focus was not updated by navigation when using tabster group for multiple cards
  • Some context classes missing from export
  • No container for nav elements
  • CarouselNav could not be used without a Carousel wrapper

New Behavior

  • CarouselNavContainer provides an easy layout system for nav components
  • Storybook updated to match more hi-fidelity designs
  • Initial focus is now set correctly on page change or external index control to prevent page jumping back to memoized item.
  • Added missing context classes to export list.
  • CarouselNav now accepts an override property for number of slides.
  • Prevented focus from getting stuck on disabled buttons or tabster elements.

Related Issue(s)

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 4, 2024

📊 Bundle size report

✅ No changes found

@Mitch-At-Work
Copy link
Contributor Author

Two tasks left (to resolve tomorrow morning):

  • Setup test for custom tabster attribute
  • Autoplay/No Autoplay story (toggle?)

Mitch-At-Work and others added 2 commits September 6, 2024 13:53
…omponents/useEmblaCarousel.ts

Co-authored-by: Oleksandr Fediashov <[email protected]>
@layershifter layershifter merged commit 5a5fbd3 into microsoft:master Sep 11, 2024
18 checks passed
@gouttierre gouttierre mentioned this pull request Sep 11, 2024
28 tasks
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Sep 12, 2024
* master: (77 commits)
  fix(react-drawer): update scroll state when children changes (microsoft#32818)
  feat(react-storybook-addon): improve addon to more readable names (microsoft#32815)
  chore: cleanup react-carousel-preview (microsoft#32475)
  feat(storybook): add rtl/ltr toggle storybook addon (microsoft#32814)
  Carousel: Storybook updates and fixing exports/focus (microsoft#32457)
  release: applying package updates - react v8
  release: applying package updates - web-components
  Update d3 dependency versions to 3.x.x and 4.x.x (microsoft#32463)
  RFC: Extended Design Tokens for Fluent UI React (microsoft#32058)
  update doc to reflect setTheme function change (microsoft#32490)
  fix (react-dialog): Use consistent rounding for clientHeight and innerHeight (microsoft#32480)
  fix(public-doscite-v9): global styles should not be applied to story elements (microsoft#32472)
  feat(workspace-plugin): implement verify-packaging executor (microsoft#32403)
  release: applying package updates - react-components
  Add strokeDasharray property when optimizeLargeData is true (microsoft#32494)
  fix(TreeItemLayout): Actions should not unmount between successive mouse events (microsoft#32477)
  release: applying package updates - react v8
  bugfix(react-tree): recover from tabIndex=-1 when TreeItem is removed (microsoft#32442)
  Fix onResolveSuggestions not being called after component is remounted in react 18 strict mode (microsoft#28227)
  fix(codeowners): update most packages owned by cxe-red with cxe-prg (microsoft#32445)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Carousel: Documentation
4 participants