-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Core: Significantly improve Storybook's own accessibility #32458
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
Merged
+14,873
−5,881
Merged
Changes from 26 commits
Commits
Show all changes
322 commits
Select commit
Hold shift + click to select a range
7366f80
fix Range border on dark
MichaelArestad 5a26d93
Merge pull request #32503 from storybookjs/m/update-light-theme
Sidnioulz d9c9808
Tests: Fix accessibility violation false positives
Sidnioulz 6c13f3d
UI: Fix remaining aria issues with control inputs
Sidnioulz 0f3a100
Tests: Fix accessibility violation false positives
Sidnioulz 17f481c
Tests: Attempt other locator for flaky E2E test afterEach hook
Sidnioulz 1b6324a
UI: Fix false positives in SelectOption stories
Sidnioulz 1e22413
UI: Fix readonly styling on radio/checkbox controls
Sidnioulz edc0177
UI: Add proper focus outline to Button
Sidnioulz 49c8fb7
Tests: Make watch mode locator more robust to avoid double matches
Sidnioulz 44fee0f
UI: Add WithPopover and port relevant internals to use it
Sidnioulz 0a2153f
fix: Use safer type annotation for overlay helpers
Sidnioulz 94e3877
UI: Fix types in RefIndicator
Sidnioulz 1af6051
Core: Add new exports
Sidnioulz e7922ef
UI: Fix padding regression in TagsFilter
Sidnioulz 7bcdc69
refactor: Remove unused handler param
Sidnioulz 69264e3
UI: Port Modal from radix to react-aria
Sidnioulz fdfcef5
UI: Fix missing onOpenChange trigger on initial Modal render
Sidnioulz d599fa3
UI: Make Modal.Title use h2 for WCAG compliance
Sidnioulz aec588a
UI: Fix Modal animation flicker and support reduced motion
Sidnioulz 2dacde4
UI: Fix story tests
Sidnioulz 528848b
Tests: Fix dialog and context-menu E2E test locators
Sidnioulz 1f1b8ba
Tests: Increase loading timeout duration on flaky test
Sidnioulz f1551fe
Tests: Make E2E tests close context menu when relevant
Sidnioulz 626956b
Merge branch 'next' into a11y-consolidation
MichaelArestad 772437a
fix button height and an a11y issue
MichaelArestad cf97e2c
UI: Add proper focus outline to Button (#32515)
Sidnioulz 7159dd5
Tests: Close testing module *after* reading result status
Sidnioulz af718e9
UI: Port WithTooltip from popper.js to react-aria and adjust internal…
Sidnioulz a7988fd
chore: Remove react-popper-tooltip dep
Sidnioulz e914108
refactor: Remove old TODO
Sidnioulz b981972
UI: Add WithPopover and port Modal to react-aria (#32492)
Sidnioulz 496cf94
UI: Port WithTooltip from popper.js to react-aria and adjust internal…
Sidnioulz eb48f64
UI: Fix recent rebase breakages around tooltips
Sidnioulz 7839dfe
UI: Make preview Toolbar and core Bar implement the toolbar role
Sidnioulz 5d4731d
UI: Rework Bar/AriaToolbar and deprecate FlexBar
Sidnioulz c9654d3
UI: Write AriaTabs and port addon panel, a11y tab, preview toolbar
Sidnioulz 75f341b
fix syntax highlighter contrast
MichaelArestad 9040e66
UI: Improve state management in AriaTabs and apply to rest of UI
Sidnioulz 8a317f8
UI: Fix CI errors in AriaTabs
Sidnioulz 9533eaa
test: Fix some toolbar-related tests
Sidnioulz 520696b
UI: Switch settings page to accessible Tabs
Sidnioulz e59df9a
Core: Update migration.md, move react-aria to pre-bundled deps, clean…
Sidnioulz 03462c7
Addon Jest: Port to new tabs and align UI on vitest
Sidnioulz a782802
Addon Docs: Port ArgsTable to new tabs
Sidnioulz 1b78010
Merge branch 'a11y-consolidation' into m/quick-fix_syntax-highlighting
MichaelArestad a772005
Core: Remove Tabs/Bar components entirely
Sidnioulz 0cd0ed1
Tests: Revert debug changes
Sidnioulz 9612f30
Tests: Reintroduce empty lockfile for react kitchensink
Sidnioulz a64ff23
Core: Add 'use-sync-external-store' to runtimeExternalInclude in entr…
ndelangen 29a0031
bust cache
ndelangen 63b4569
Core: Add 'use-sync-external-store' dependency to package.json
ndelangen c83ea00
Update yarn.lock to include 'use-sync-external-store' version 1.5.0
ndelangen 3513f00
test: Fix E2E tests linked to toolbars and tabpanels
Sidnioulz c381322
Core: Update code after rebase
Sidnioulz b9b348f
Revert "Core: Remove Tabs/Bar components entirely"
Sidnioulz 4b3595c
Core: re-add missing component export
Sidnioulz 395f5de
UI: Replace Tabs overflow button with fast scroll buttons
Sidnioulz 7bde9ac
UI: Fix duplicate attrs in AriaTabs
Sidnioulz e9dccb1
UI: Ensure AriaTabs tools don't shrink
Sidnioulz aba6245
UI: Ensure TabPanel gets its id for aria-controls ID calc
Sidnioulz f25b4e3
Tests: Update locator
Sidnioulz 9d13ec6
UI: Fix id prop type on AriaTabPanel
Sidnioulz b7ee102
UI: Rename AriaTabs and AriaToolbar components and adjust MIGRATION.md
Sidnioulz 869486c
UI: Fix types on bars
Sidnioulz 893041a
UI: Fix deprecated FlexBar and Tabs width calculation
Sidnioulz e9901ed
UI: Introduce stateless version of TabsView for the addons panel
Sidnioulz 04a63b8
Tests: Adjust E2E locators
Sidnioulz 15be6b9
Core: Fix components TS build OOM by not exporting RAC types
Sidnioulz 85a2462
UI: Fix type error in deprecated tab hooks again
Sidnioulz f33df3c
UI: Fix syntax highlighter contrast (#32525)
Sidnioulz ebe087d
UI: Make preview Toolbar and core Bar implement the toolbar role (#32…
Sidnioulz 9ff4da1
Update code/core/src/manager/components/mobile/navigation/MobileNavig…
MichaelArestad 46bf947
Mobile About: Fix button height and an a11y label violation (#32523)
Sidnioulz a054303
WIP: DBG CI
Sidnioulz bc9177c
UI: Fix post-merge regressions in Select focus management
Sidnioulz 9b149de
Tests: Fix misc story tests linked to popovers and focus
Sidnioulz 6e49865
UI: Fix scroll behaviour in Select
Sidnioulz 08f3c7f
UI: Update current addon panel CSS selector
Sidnioulz 0a5e02c
Tests: Fix locale select selector due to aria-label change
Sidnioulz fdf063b
UI: Deprecate Modal.CloseButton/Dialog.Close instead of deleting
Sidnioulz 60f0bef
Tests: Fix selector in WithTooltip story
Sidnioulz 7673c76
Tests: Clean up module mocking checks put before fixing tabpanel rend…
Sidnioulz bac1fc7
UI: Add deprecate notice to WithTooltip startOpen
Sidnioulz afe4889
UI: Remove delay prop on WithPopover call in tabs
Sidnioulz 3fb4e61
UI: Fix padding regression in share menu
Sidnioulz cddea31
UI: Remove useless isMobile check
Sidnioulz 83016bc
Tests: Ensure desktop-only story runs with a desktop viewport
Sidnioulz d67696d
Tests: Make component-testing dialog closing routine even more robust
Sidnioulz 87b8b51
UI: Fix focus outline inconsistencies in button/toggle/select
Sidnioulz 3a74ce5
UI: Fix focus outlines on a few components
Sidnioulz 66deba7
UI: Fix ContextMenu positioning regression
Sidnioulz ba01426
UI: Fix positioning of Open in Editor button in Toolbar
Sidnioulz b4aa9ad
UI: Fix missing semicolon in pseudostates labels
Sidnioulz da097bf
UI: Fix contrast on Select with selection
Sidnioulz 40a4fe0
UI: Reintroduce checkbox in multiSelect Select
Sidnioulz 993e5ac
Core: Attempt to rebuild with react-stately prebundled
Sidnioulz 7de4606
UI: Ensure ToggleButton dark mode selected has same colors as Select
Sidnioulz a80c447
Core: Eliminate another instance of react-stately export
Sidnioulz b7f1635
UI: Further strip react-stately from our public types
Sidnioulz 583c037
Revert "Core: Replace use-sync-external-store CJS-only shim with ESM …
Sidnioulz e2edf21
UI: Fix up a few more CLI story issues
Sidnioulz 5a6569e
Tests: Relax locator for component testing module desc
Sidnioulz 33f4e0d
Tests: Disable somewhat flaky story tests
Sidnioulz 5bff322
Fix FloatingStatusButton background color
ghengeveld fff6a0f
Merge branch 'a11y-consolidation' into fix-floating-button-bgcolor
ghengeveld 1c053c0
Merge pull request #32554 from storybookjs/fix-floating-button-bgcolor
ghengeveld 930176c
Merge branch 'next' into a11y-consolidation
Sidnioulz 7ac3a30
Merge branch 'a11y-consolidation' of github.com:storybookjs/storybook…
Sidnioulz a00e415
UI: Add missing ariaLabel prop in Tree
Sidnioulz 94ecbea
UI: Implement kb nav in TagsFilterPanel
Sidnioulz 7c1eb65
Tests: revert accidental change to Playwright config
Sidnioulz 1d2be9b
Fix include/exclude button focus behavior
ghengeveld 02861e6
Fix context menu button focus outline
ghengeveld 4266f41
Tests: Readd testid removed by merge
Sidnioulz 267e962
Tests: Disable flaky stories properly until we investigate them
Sidnioulz 4bd86e2
Tests: Fix tab button locator
Sidnioulz c0a5180
Fix root node button hover/focus styling
ghengeveld 5b1b470
Tests: Try to reinstate FileSearchModal story as it's used as a dep e…
Sidnioulz 4f1938b
Tests: Disambiguate resolver
Sidnioulz f20e2c5
Fix chevron alignment
ghengeveld 1024415
Remove stray console.log
ghengeveld c1fe255
Tests: Adjust component testing locator and count
Sidnioulz 0dfd1a4
UI: Fix WithTooltip circular reference warning
Sidnioulz e83f676
Tests: Fix last e2e component testing tests
Sidnioulz 77fcd59
Tests: Try to wait in flaky modal test
Sidnioulz 8a65204
Tests: Reenable flaky RAC overlay stories
Sidnioulz f1254b9
Fix link (anchor) item outline offset to override browser default
ghengeveld 7eb1e42
Consistent focus outlines
ghengeveld 986af27
Prevent focus on an element that won't be visible
ghengeveld f0c873a
Fix chevron color and focus states for ref button
ghengeveld fad0c6d
Tests: Make addon actions console.log E2E test more robust
Sidnioulz 8ca006e
Tests: Relax actions addon test further as logItem.count() doesnt mat…
Sidnioulz ebd17ee
Tests: Add waitFor statements to give RAC a chance to mount triggers
Sidnioulz a1c4bf5
Tests: Wrap one more RAC component in a waitFor
Sidnioulz 77f026e
Tests: Strengthen timers on story test
Sidnioulz df215d6
Tests: Wait for button getter in A11yPanel story
Sidnioulz cec61fa
Merge branch 'next' into a11y-consolidation
ghengeveld 1a70051
Merge branch 'next' into a11y-consolidation
ghengeveld 4d15243
Add missing prop
ghengeveld a928e4e
Use findBy rather than getBy
ghengeveld 6197fe4
Use queryBy when asserting for something to not exist
ghengeveld 756a501
Allow time for modal to fully open
ghengeveld 6b5f19f
Fix unsized logo image handling
ghengeveld fafd4d9
Extend timeout
ghengeveld ace8890
No need for waitFor
ghengeveld 3c21dd0
skip select stories on vitest tests
yannbf b8fa9ac
Merge branch 'next' into a11y-consolidation
yannbf 4e3cf8e
Update Select stories to include a trailing comma in tags for consist…
ndelangen b7e0f80
remove use of useId to be able to use react17
ndelangen 2f8eee0
Update useAriaDescription to handle undefined description gracefully
ndelangen 3b014af
Refactor useAriaDescription to default description to an empty string…
ndelangen a8934fc
Merge branch 'next' into a11y-consolidation
ndelangen c83d3af
Refactor CircleCI configuration to simplify Verdaccio setup by consol…
ndelangen e10b687
Merge branch 'a11y-consolidation' of https://github.com/storybookjs/s…
ndelangen 700d90c
regen lockfile
ndelangen bd93478
Merge branch 'next' into a11y-consolidation
ndelangen 0b2689d
Update component.vue to use 'any' type for default export in class slots
ndelangen 1ac38d4
rename
ndelangen ca056bd
Merge branch 'a11y-consolidation' of https://github.com/storybookjs/s…
ndelangen 6932813
rename
ndelangen 0f00fd9
rename
ndelangen e03f052
rename
ndelangen e4240cf
rename
ndelangen 3b6921e
renames
ndelangen 3ce22b6
get build to work
ndelangen d03094d
rename
ndelangen ba2dfbf
rename
ndelangen d32f94b
rename
ndelangen 9df1f02
rename
ndelangen 6a299b4
rename
ndelangen 1769a46
rename
ndelangen 715656a
rename
ndelangen 5b0b557
Fix context menu border radius
ghengeveld c7d91dc
Fix context menu button background when not hovered
ghengeveld 50ddbf0
import from specific `@react-aria/X` packages instead of `react-aria`…
JReinhold 8fd064a
patch react-aria-components to improve it's treeshakeability
JReinhold aef475f
cleanup
JReinhold 4a7671c
Merge branch 'a11y-consolidation' into a11y-improved-size
JReinhold d27eca2
Merge pull request #32594 from storybookjs/a11y-improved-size
JReinhold 13381dc
Tests: Fix theme conversion unit test after hoverable change
Sidnioulz ad10342
Tests: Increase initial timeouts for stories with RAC that tend to fail
Sidnioulz 5dbb4cc
Tests: Increase initial timeouts for stories with RAC that tend to fail
Sidnioulz 8eb69e2
UI: Make MobileNav a landmark to not shadow inner content
Sidnioulz 8be05ad
Core: Stop lazy-loading overlays
Sidnioulz 627c8eb
Tests: Ensure Menu story has a forwardRef trigger in decorator
Sidnioulz 41966b5
UI: Fix regression in header layout
Sidnioulz bf1b16b
UI: Fix focus outline issues on buttons with nearby siblings
Sidnioulz 25aad0c
UI: Fix multi Select regression in checkbox render
Sidnioulz da495fd
Tests: Fix up story decorator for a more realistic UI outcome
Sidnioulz 05040c4
Core: Avoid react useId for React 17 compat
Sidnioulz 7d94edd
UI: Fix unreachable clear search button
Sidnioulz 2153f74
WIP: Revert breaking changes on Button, Tabs, Modal
Sidnioulz 9167f42
WIP: Continue revert on Modal
Sidnioulz c51fec3
UI: Finish removing breaking changes from a11y branch
Sidnioulz 1c1ce6d
Merge branch 'next' into a11y-consolidation
Sidnioulz 1c3aec4
UI: Fix missing tabbutton text bug in old Tabs component
Sidnioulz 8229310
Tests: Fix story tests and remove obsolete Tabs tests on manager UI s…
Sidnioulz 56fadaf
Tests: Backport react portable test changes to react-vitest-3
Sidnioulz 30a307e
UI: Forward refs in old SB Tabs components
Sidnioulz 1c38cd1
UI: Place old WithTooltip behind lazy loading guard
Sidnioulz d74a67d
Core: Attempt to remove potential circular dep in Emotion's init
Sidnioulz 147924e
Button: Reenable deprecation warning
Sidnioulz 3c3e5a6
Core: Avoid all references to components package from within its source
Sidnioulz 02f9047
UI: Ensure TabList forwards tabitem aria labels
Sidnioulz eb4399c
Merge branch 'next' into a11y-consolidation
Sidnioulz e9e7055
UI: Dedupe deprecation warning on Button
Sidnioulz 92dd224
UI: Add missing default variant on ToggleButton
Sidnioulz 6203d8d
UI: Dedupe deprecation warnings on Modals
Sidnioulz 6213340
UI: Fix false positive contrast violations in Bar stories
Sidnioulz 45c3286
UI: Fix false positive contrast violations in FlexBar stories
Sidnioulz cf04d56
UI: Improve id computation in TabPanel and fix a11y warnings
Sidnioulz 69b073b
UI: Rename not-yet-published popover/tooltip comps
Sidnioulz 2bef9e8
UI: Make further fixes to tabs stories
Sidnioulz dd352c0
UI: Fix long story name overflow in mobile navigation menu
Sidnioulz adb5a0d
UI: Fix back button alignemnt in About menu
Sidnioulz 63a12e2
UI: Fix missing empty state in addon panel
Sidnioulz 2c5ebf9
UI: Fix some/most padding regressions in Header Brand
Sidnioulz d07ce78
UI: Reenable hover state on version select
Sidnioulz 1b79492
UI: Fix layout shift in mobile sidebar
Sidnioulz 40ec7f2
UI: Fix missing non-empty manager Panel state :D
Sidnioulz 978fa4c
UI: Ensure reset filters button is ghost variant
Sidnioulz bef2ca9
UI: Use single theme in FileSearchModal stories to make them less buggy
Sidnioulz 786696d
UI: Revert Brand component layout back
Sidnioulz 378021b
UI: Switch Modal stories to a single theme to avoid double focus trap…
Sidnioulz 3392f8d
Update Migration notes for 10.1
Sidnioulz 4ea3c82
UI: Fix TabbedArgsTable border
Sidnioulz ef47dbf
UI: Compensate Bar layout changes in FlexBar
Sidnioulz 00dd91f
UI: Fix up TooltipMessage stories
Sidnioulz 891fcd3
UI: Remove flex basis from TabsView bar
Sidnioulz e8f0a59
UI: Revert the revert on Brand because it made things worse
Sidnioulz 138cb9d
UI: Improve padding compensation logic in FlexBar
Sidnioulz 29a5105
UI: Fix skip to canvas link going under setting button
Sidnioulz 38134b1
UI: Revert Brand AND Heading layout changes
Sidnioulz 046a6a2
UI: Update import path for pickBy function in ArgsTable component
ndelangen e5b547f
UI: Update import path for EmptyBlock in ArgsTable component
ndelangen f939507
Merge branch 'next' into a11y-consolidation
ndelangen f02b182
UI: Remove accidental click handler on eject link
Sidnioulz 9827240
UI: Remove console.log debug statements
Sidnioulz 5482845
UI: Make focusOnUIElement poll to limit focus trap race conditions
Sidnioulz 1a2f42d
UI: Make changes to Modal underlay and drawer animation
Sidnioulz 7884d58
UI: Fix bottom bar positioning in WhatsNew page
Sidnioulz bb6ab49
UI: Reintroduce large Modal backdrop blur
Sidnioulz 23e0a14
Merge branch 'next' into a11y-consolidation
Sidnioulz f008125
UI: Rename prop suspected to cause React errors
Sidnioulz d2a4975
UI: Stop using emotion attrs on Radix ScrollAreaViewport
Sidnioulz 491f722
Merge branch 'next' into a11y-consolidation
Sidnioulz 80c2007
Merge branch 'next' into a11y-consolidation
Sidnioulz 429c0e3
Merge branch 'next' into a11y-consolidation
ndelangen f9b2a56
Merge branch 'next' into a11y-consolidation
yannbf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicated paragraph and fix spelling (“superseded”).
Two consecutive sentences say the same thing; the second also misspells “superseded”. Drop the duplicate.
During development of Storybook [Tags](https://storybook.js.org/docs/writing-stories/tags), we created `dev-only`, `docs-only`, and `test-only` built-in tags. These tags were never documented and superseded by the currently-documented `dev`, `autodocs`, and `test` tags which provide more precise control. The outdated `x-only` tags are removed in 10.0. -During development of Storybook [Tags](https://storybook.js.org/docs/writing-stories/tags), we created `dev-only`, `docs-only`, and `test-only` built-in tags. These tags were never documented and superceded by the currently-documented `dev`, `autodocs`, and `test` tags which provide more precise control. The outdated `x-only` tags are removed in 10.0.📝 Committable suggestion
🤖 Prompt for AI Agents