-
Notifications
You must be signed in to change notification settings - Fork 538
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
feat(Select): Convert Select
component to CSS Modules behind feature flag
#5194
Conversation
🦋 Changeset detectedLatest commit: e9b9710 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
Select
component to CSS Modules behind feature flag
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/349335 |
@@ -3,7 +3,7 @@ import Autocomplete from '../Autocomplete' | |||
import Box from '../Box' | |||
import Checkbox from '../Checkbox' | |||
import Radio from '../Radio' | |||
import Select from '../Select' | |||
import Select from '../Select/Select' |
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.
Use the newest Select
component
@@ -1,5 +1,6 @@ | |||
import React from 'react' | |||
import {Select, FormControl, Box, Heading} from '..' | |||
import {FormControl, Box, Heading} from '..' | |||
import Select from '.' |
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.
Get Select
from the correct location
@@ -1,5 +1,5 @@ | |||
import React from 'react' | |||
import {Select} from '../../src' | |||
import Select from '.' |
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.
Get Select
from the correct location
export {default as Select} from './Select' | ||
export type {SelectProps} from './Select' | ||
// Curently there is a duplicate Select component at the root of the dir, so need to be explicit about exporting from the src/Select dir | ||
export {default as Select} from './Select/Select' |
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.
@joshblack Should I explore deleting the src/Select.tsx
file in a follow up PR?
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.
That would be very much so appreciated if you have the time! 🙏
🟢 golden-jobs completed with status |
Closes https://github.com/github/primer/issues/4299
Changelog
Changed
src/Select/Select.tsx
instead of the duplicate one located atsrc/Select.tsx
which was causing some confusion.Rollout strategy
Testing & Reviewing