Skip to content

Commit

Permalink
Merge branch 'main' into css_modules_banner_remove_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan authored Nov 14, 2024
2 parents a2a9b53 + c1ee2a4 commit fc2735c
Show file tree
Hide file tree
Showing 46 changed files with 9,926 additions and 2,158 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-meals-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move CounterLabel CSS module feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/curly-bikes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Radio component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/fast-hats-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Pagehead component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/gentle-yaks-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Update `TreeView` component to use CSS Modules
5 changes: 5 additions & 0 deletions .changeset/honest-plums-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Header component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/odd-seas-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move BranchName component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/old-weeks-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Move Skeleton component from team to staff flag
5 changes: 5 additions & 0 deletions .changeset/polite-ligers-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

chore(ButtonGroup): Move ButtonGroup CSS module feature flag from staff to ga
5 changes: 5 additions & 0 deletions .changeset/real-fans-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Convert TextInput to use data attributes
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 contributor-docs/migrating-to-css-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This guide outlines the steps to follow when refactoring Primer React components
- Add a feature flag to toggle the `sx` prop for controlled rollout (staff shipping). How it's used will be based on the implementation of the component. For most you'll be able to `useFeatureFlag` and toggle between components. For more complex styled components, you can use the utility `toggleStyledComponent` which will render based on the feature flag string provided.

```jsx
/* When there is an exisiting styled component, use the `toggleStyledComponent` utility. */
/* When there is an existing styled component, use the `toggleStyledComponent` utility. */
const StyledDiv = toggleStyledComponent(
'primer_react_css_modules_team',
'div',
Expand Down
2 changes: 1 addition & 1 deletion examples/codesandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.3.1",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.3",
"@primer/react": "37.5.0",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down
Loading

0 comments on commit fc2735c

Please sign in to comment.