Skip to content

Commit 6d6eaec

Browse files
authored
Merge branch 'main' into perf/breadcrumbs-cls-fix
2 parents ee72d57 + 501a41f commit 6d6eaec

File tree

50 files changed

+1358
-464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1358
-464
lines changed

.changeset/fresh-spiders-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
update SelectPanel Multi Select Modal story
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
perf(Autocomplete): Split context to reduce unnecessary re-renders
6+
7+
Split AutocompleteContext into separate contexts for static values, setters, and dynamic state.
8+
Components now subscribe only to the context slices they need, reducing re-renders.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
perf(BaseStyles): Remove expensive :has([data-color-mode]) selectors
6+
7+
Remove `:has([data-color-mode])` selectors that scanned the entire DOM on every style recalculation.
8+
Input color-scheme is already handled by global selectors in the codebase.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
perf(Dialog): Add feature flag for CSS :has() selector performance optimization
6+
7+
- Add `primer_react_css_has_selector_perf` feature flag (default: false)
8+
- When flag is OFF: uses legacy `body:has(.Dialog.DisableScroll)` selector
9+
- When flag is ON: uses optimized direct `body[data-dialog-scroll-disabled]` data attribute with ref counting
10+
- Enables gradual rollout and easy rollback of performance optimization
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
perf(hasInteractiveNodes): Optimize with combined selector and early attribute checks
6+
7+
- Use combined querySelectorAll selector instead of recursive traversal
8+
- Check attribute-based states (disabled, hidden, inert) before getComputedStyle
9+
- Only call getComputedStyle when CSS-based visibility check is needed

.changeset/perf-treeview-typeahead-cache.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/ripe-baths-rush.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/aat-reports.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: install dependencies
7373
run: npm ci
7474
- name: download all reports
75-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
75+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
7676
with:
7777
path: all-blob-reports
7878
pattern: aat-*

.github/workflows/deploy_preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Build docs preview
3434
run: npm run build:docs:preview
3535
- name: Download VRT reports
36-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
36+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
3737
with:
3838
name: vrt
3939
path: docs/public/vrt
4040
- name: Download AAT reports
41-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
41+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
4242
with:
4343
name: aat
4444
path: docs/public/aat

.github/workflows/deploy_preview_forks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Build docs preview
3434
run: npm run build:docs:preview
3535
- name: Download VRT reports
36-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
36+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
3737
with:
3838
name: vrt
3939
path: docs/public/vrt
4040
- name: Download AAT reports
41-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
41+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
4242
with:
4343
name: aat
4444
path: docs/public/aat

0 commit comments

Comments
 (0)