Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: primer/react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @primer/react@37.14.0
Choose a base ref
...
head repository: primer/react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @primer/react@37.15.0
Choose a head ref

Commits on Feb 21, 2025

  1. chore: Move components from staff CSS modules feature flag to ga (#5710)

    * Moving Autocomplete to CSS modules ga flag
    
    * Move AvatarStack from staff to ga feature flag
    
    * Moving ConfirmationDialog to `primer_react_css_modules_ga` feature flag
    
    * Moving DataTable to `primer_react_css_modules_ga` feature flag
    
    * Moving UnderlinePanels to `primer_react_css_modules_ga` feature flag
    
    * Moving InlineMessage to `primer_react_css_modules_ga` feature flag
    
    * Moving KeybindingHint to `primer_react_css_modules_ga` feature flag
    
    * Moving NavList to `primer_react_css_modules_ga` feature flag
    
    * Moving Overlay to `primer_react_css_modules_ga` feature flag
    
    * Moving PageHeader to `primer_react_css_modules_ga` feature flag
    
    * Moving PageLayout to `primer_react_css_modules_ga` feature flag
    
    * Moving Pagination to `primer_react_css_modules_ga` feature flag
    
    * Moving SegmentedControl to `primer_react_css_modules_ga` feature flag
    
    * Moving SelectPanel to `primer_react_css_modules_ga` feature flag
    
    * Moving SubNav to `primer_react_css_modules_ga` feature flag
    
    * Moving Token to `primer_react_css_modules_ga` feature flag
    
    * Moving Tooltip to `primer_react_css_modules_ga` feature flag
    
    * Moving BaseStyles to `primer_react_css_modules_ga` feature flag
    
    * Moving SideNav to `primer_react_css_modules_ga` feature flag
    jonrohan authored Feb 21, 2025
    Copy the full SHA
    b1cdc63 View commit details
  2. Copy the full SHA
    913fd7b View commit details
  3. Copy the full SHA
    912f201 View commit details
  4. Code connect radio group and check group (#5704)

    * radioGroup
    
    * update checkboxGroup
    
    * add changeset
    
    * lock
    
    * update label
    
    * rm changeset
    lukasoppermann authored Feb 21, 2025
    Copy the full SHA
    a93a3fc View commit details

Commits on Feb 24, 2025

  1. Add expand to NavList (#4686)

    * Add expand to `NavList`
    
    * Improved semantics
    
    * Remove styles
    
    * Add extra story
    
    * Add unit test coverage
    
    * Add Group unit test coverage
    
    * Add e2e test coverage
    
    * Add expanded to groups
    
    * Fix import
    
    * Change structure
    
    * Update stories, add ref
    
    * Update tests, add focus target
    
    * Add changeset
    
    * Remove `GroupContent`
    
    * Update to use context
    
    * Add useRef usage
    
    * Change name to `NavList.ShowMoreItem`
    
    * Update docs
    
    * test(vrt): update snapshots
    
    * Update .changeset/many-rivers-deny.md
    
    Co-authored-by: Josh Black <joshblack@github.com>
    
    * Address some feedback
    
    * Memoize id value
    
    * Update w/ new prop `Pages` based on suggestion from Primer patterns
    
    * test(vrt): update snapshots
    
    * Remove story
    
    * Remove story test
    
    * Remove the correct story
    
    * Add condition for css modules feature flag
    
    * Update tests, docs, add ternary
    
    * Only allow for `Item` in `ShowMoreItem`
    
    * Fix lint issue
    
    * Add dependencies
    
    * Remove comment
    
    * Add data API
    
    * Some clean up for `NavList`
    
    * More clean up
    
    * Use `useMemo` instead
    
    * Update docs
    
    * Fix tests
    
    * Remove auto-import
    
    * Add `key` to story
    
    * PR review feedback
    
    * Type check
    
    * Update packages/react/src/NavList/NavList.tsx
    
    Co-authored-by: Josh Black <joshblack@github.com>
    
    ---------
    
    Co-authored-by: Kate Higa <16447748+khiga8@users.noreply.github.com>
    Co-authored-by: TylerJDev <TylerJDev@users.noreply.github.com>
    Co-authored-by: Josh Black <joshblack@github.com>
    4 people authored Feb 24, 2025
    Copy the full SHA
    6b137a4 View commit details

Commits on Feb 25, 2025

  1. Code connect add UnderlinePanels (#5715)

    * adding more components
    
    * adding underlinePanels
    
    * fix type issues
    
    * fix lint errors
    lukasoppermann authored Feb 25, 2025
    Copy the full SHA
    67e5872 View commit details
  2. Copy the full SHA
    0ecc07f View commit details

Commits on Feb 26, 2025

  1. Wrap AvatarStack avatars in isolation: isolate to create a new st…

    …acking context (#5705)
    
    * Wrap `AvatarStack` avatars in `isolation: isolate`
    
    * Create strange-pets-stare.md
    
    * Snap!
    iansan5653 authored Feb 26, 2025
    Copy the full SHA
    2857a8e View commit details
  2. chore(deps-dev): bump eslint-plugin-react-refresh from 0.4.18 to 0.4.…

    …19 (#5701)
    
    Bumps [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) from 0.4.18 to 0.4.19.
    - [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases)
    - [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md)
    - [Commits](ArnaudBarre/eslint-plugin-react-refresh@v0.4.18...v0.4.19)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-react-refresh
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 26, 2025
    Copy the full SHA
    38df7f7 View commit details
  3. chore(deps-dev): bump the storybook group across 1 directory with 12 …

    …updates (#5718)
    
    Bumps the storybook group with 10 updates in the / directory:
    
    | Package | From | To |
    | --- | --- | --- |
    | [@storybook/addon-a11y](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/a11y) | `8.5.3` | `8.5.8` |
    | [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/actions) | `8.5.3` | `8.5.8` |
    | [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials) | `8.5.3` | `8.5.8` |
    | [@storybook/addon-interactions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/interactions) | `8.5.3` | `8.5.8` |
    | [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/links) | `8.5.3` | `8.5.8` |
    | [@storybook/addon-storysource](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/storysource) | `8.5.3` | `8.5.8` |
    | [@storybook/preview-api](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/preview-api) | `8.5.3` | `8.5.8` |
    | [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/react) | `8.5.3` | `8.5.8` |
    | [@storybook/react-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-vite) | `8.5.3` | `8.5.8` |
    | [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `8.5.3` | `8.5.8` |
    
    
    
    Updates `@storybook/addon-a11y` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/a11y)
    
    Updates `@storybook/addon-actions` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/actions)
    
    Updates `@storybook/addon-essentials` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/essentials)
    
    Updates `@storybook/addon-interactions` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/interactions)
    
    Updates `@storybook/addon-links` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/links)
    
    Updates `@storybook/addon-storysource` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/addons/storysource)
    
    Updates `@storybook/preview-api` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/lib/preview-api)
    
    Updates `@storybook/react` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/renderers/react)
    
    Updates `@storybook/react-vite` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/frameworks/react-vite)
    
    Updates `@storybook/source-loader` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/lib/source-loader)
    
    Updates `@storybook/theming` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/lib/theming)
    
    Updates `storybook` from 8.5.3 to 8.5.8
    - [Release notes](https://github.com/storybookjs/storybook/releases)
    - [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
    - [Commits](https://github.com/storybookjs/storybook/commits/v8.5.8/code/lib/cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@storybook/addon-a11y"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/addon-actions"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/addon-essentials"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/addon-interactions"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/addon-links"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/addon-storysource"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/preview-api"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/react"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/react-vite"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/source-loader"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: "@storybook/theming"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    - dependency-name: storybook
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: storybook
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 26, 2025
    Copy the full SHA
    f38f547 View commit details
  4. chore(deps-dev): bump esbuild from 0.21.5 to 0.25.0 (#5681)

    Bumps [esbuild](https://github.com/evanw/esbuild) from 0.21.5 to 0.25.0.
    - [Release notes](https://github.com/evanw/esbuild/releases)
    - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
    - [Commits](evanw/esbuild@v0.21.5...v0.25.0)
    
    ---
    updated-dependencies:
    - dependency-name: esbuild
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 26, 2025
    Copy the full SHA
    34afd52 View commit details
  5. chore(deps-dev): bump @actions/core from 1.10.1 to 1.11.1 (#5700)

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.1 to 1.11.1.
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
    
    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 26, 2025
    Copy the full SHA
    9d82cda View commit details
  6. chore: add reset script for development (#5709)

    * chore: add reset script for development
    
    * Update package.json
    joshblack authored Feb 26, 2025
    Copy the full SHA
    65a197b View commit details

Commits on Mar 4, 2025

  1. Fixes AvatarStack styling bugs (focus on stacking context issues) (#5714

    )
    
    Co-authored-by: mperrotti <mperrotti@users.noreply.github.com>
    mperrotti and mperrotti authored Mar 4, 2025
    Copy the full SHA
    0cfafe8 View commit details
  2. chore: Ensure class names conform to PascalCase (#5716)

    Co-authored-by: Jon Rohan <yes@jonrohan.codes>
    hussam-i-am and jonrohan authored Mar 4, 2025
    Copy the full SHA
    d62a494 View commit details
  3. chore(deps-dev): bump the storybook group with 12 updates (#5727)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 4, 2025
    Copy the full SHA
    3dc3714 View commit details
  4. chore(deps-dev): bump @changesets/changelog-github from 0.5.0 to 0.5.1 (

    #5728)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 4, 2025
    Copy the full SHA
    ee7961f View commit details

Commits on Mar 5, 2025

  1. Copy the full SHA
    7849c95 View commit details
  2. feat: Support className prop in FormControl.Caption component (#5726

    )
    
    Co-authored-by: Josh Black <joshblack@github.com>
    smockle and joshblack authored Mar 5, 2025
    Copy the full SHA
    2646c12 View commit details
  3. Copy the full SHA
    454ff20 View commit details

Commits on Mar 7, 2025

  1. Copy the full SHA
    7400549 View commit details
  2. Copy the full SHA
    9d78410 View commit details

Commits on Mar 8, 2025

  1. chore: Update SelectPanel stories width and height (#5746)

    Co-authored-by: francinelucca <francinelucca@users.noreply.github.com>
    francinelucca and francinelucca authored Mar 8, 2025
    Copy the full SHA
    6979d25 View commit details
  2. DialogV2: Reduce the buttons in Storybook story (#5740)

    Co-authored-by: TylerJDev <TylerJDev@users.noreply.github.com>
    TylerJDev and TylerJDev authored Mar 8, 2025
    Copy the full SHA
    4691b9f View commit details

Commits on Mar 10, 2025

  1. DialogV2: Add alpha status to docs (#5706)

    Co-authored-by: TylerJDev <TylerJDev@users.noreply.github.com>
    Co-authored-by: Jon Rohan <yes@jonrohan.codes>
    3 people authored Mar 10, 2025
    Copy the full SHA
    9324036 View commit details
  2. chore(deps-dev): bump the storybook group with 12 updates (#5749)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 10, 2025
    Copy the full SHA
    daca1ff View commit details
  3. chore(deps-dev): bump @playwright/test from 1.50.0 to 1.51.0 (#5751)

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Josh Black <joshblack@github.com>
    dependabot[bot] and joshblack authored Mar 10, 2025
    Copy the full SHA
    9e691a7 View commit details
  4. feat(FormControl): Promote FormControl to CSS modules GA feature flag (

    …#5738)
    
    Co-authored-by: Jon Rohan <yes@jonrohan.codes>
    jamieshark and jonrohan authored Mar 10, 2025
    Copy the full SHA
    a4137bc View commit details
  5. Copy the full SHA
    86cd9f0 View commit details

Commits on Mar 13, 2025

  1. Release tracking (37.15.0) (#5717)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    primer[bot] and github-actions[bot] authored Mar 13, 2025
    Copy the full SHA
    ea8b983 View commit details
Showing 376 changed files with 5,558 additions and 3,157 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aat-reports.yml
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run AAT
uses: docker://mcr.microsoft.com/playwright:v1.50.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.51.0-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
@@ -114,7 +114,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run AAT
uses: docker://mcr.microsoft.com/playwright:v1.50.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.51.0-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
4 changes: 2 additions & 2 deletions .github/workflows/vrt-reports.yml
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run VRT
uses: docker://mcr.microsoft.com/playwright:v1.50.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.51.0-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
@@ -114,7 +114,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run VRT
uses: docker://mcr.microsoft.com/playwright:v1.50.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.51.0-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run VRT
uses: docker://mcr.microsoft.com/playwright:v1.50.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.51.0-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -40,3 +40,6 @@ blob-report

# ESLint
.eslintcache

# CSS modules type definitions
*.module.css.d.ts
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion e2e/components/Dialogv1.test.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ test.describe('Dialog v1', () => {
test.describe(theme, () => {
test('default @vrt', async ({page}) => {
await visit(page, {
id: 'components-dialogv1--default',
id: 'deprecated-components-dialogv1--default',
globals: {
colorScheme: theme,
},
56 changes: 56 additions & 0 deletions e2e/components/NavList.test.ts
Original file line number Diff line number Diff line change
@@ -92,4 +92,60 @@ test.describe('NavList', () => {
})
}
})

test.describe('With expand', () => {
for (const theme of themes) {
test.describe(theme, () => {
test('default @vrt', async ({page}) => {
await visit(page, {
id: 'components-navlist--with-expand',
globals: {
colorScheme: theme,
},
})

// Default state
expect(await page.screenshot()).toMatchSnapshot(`NavList.With expand.${theme}.png`)
})

test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-navlist--with-expand',
globals: {
colorScheme: theme,
},
})
await expect(page).toHaveNoViolations()
})
})
}
})

test.describe('With group expand', () => {
for (const theme of themes) {
test.describe(theme, () => {
test('default @vrt', async ({page}) => {
await visit(page, {
id: 'components-navlist--with-group-expand',
globals: {
colorScheme: theme,
},
})

// Default state
expect(await page.screenshot()).toMatchSnapshot(`NavList.With group expand.${theme}.png`)
})

test('axe @aat', async ({page}) => {
await visit(page, {
id: 'components-navlist--with-group-expand',
globals: {
colorScheme: theme,
},
})
await expect(page).toHaveNoViolations()
})
})
}
})
})
4 changes: 2 additions & 2 deletions examples/codesandbox/package.json
Original file line number Diff line number Diff line change
@@ -20,10 +20,10 @@
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@primer/react": "37.14.0",
"@primer/react": "37.15.0",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.18",
"eslint-plugin-react-refresh": "^0.4.19",
"styled-components": "5.x",
"typescript": "^5.7.2",
"vite": "^5.4.12"
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@primer/react": "37.14.0",
"@primer/react": "37.15.0",
"next": "^15.1.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
2 changes: 1 addition & 1 deletion examples/theming/package.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
},
"dependencies": {
"@primer/octicons-react": "^19.14.0",
"@primer/react": "37.14.0",
"@primer/react": "37.15.0",
"clsx": "^1.2.1",
"next": "^14.2.15",
"react": "^18.3.1",
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.header {
.Header {
display: flex;
justify-content: space-between;
align-items: center;
min-height: 4rem;
padding: var(--base-size-16);
}

.logo {
.Logo {
color: inherit;
text-decoration: none;
}
4 changes: 2 additions & 2 deletions examples/theming/src/app/components/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import classes from './PageHeader.module.css'

export function PageHeader() {
return (
<header className={classes.header}>
<Link href="/" className={classes.logo}>
<header className={classes.Header}>
<Link href="/" className={classes.Logo}>
Primer
</Link>
<ThemePreference />
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* stylelint-disable selector-no-qualifying-type */
html[data-color-mode='dark'] .light {
html[data-color-mode='dark'] .Light {
display: none !important;
}

html[data-color-mode='light'] .dark,
html[data-color-mode='auto'] .dark {
html[data-color-mode='light'] .Dark,
html[data-color-mode='auto'] .Dark {
display: none !important;
}
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@

import {SunIcon, MoonIcon} from '@primer/octicons-react'
import {Button, useTheme} from '@primer/react'
import {clsx} from 'clsx'
import classes from './ThemePreference.module.css'

export function ThemePreference() {
@@ -30,8 +29,8 @@ export function ThemePreference() {
})
}}
>
<SunIcon className={clsx(classes.icon, classes.light)} />
<MoonIcon className={clsx(classes.icon, classes.dark)} />
<SunIcon className={classes.Light} />
<MoonIcon className={classes.Dark} />
</Button>
)
}
Loading