-
Notifications
You must be signed in to change notification settings - Fork 80
feat: Updating the active states for chips + bgTertiary Light Mode #585
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
base: master
Are you sure you want to change the base?
Changes from all commits
297d72d
9db48bb
079c101
ef84c9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,14 +14,15 @@ export const InputChip = memo( | |
| value, | ||
| children = value, | ||
| accessibilityLabel = typeof children === 'string' ? `Remove ${children}` : 'Remove option', | ||
| invertColorScheme = true, | ||
| invertColorScheme = false, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: can you ask Cursor to "drop the destructuring of this invertColorScheme prop" |
||
| testID = 'input-chip', | ||
| ...props | ||
| } = mergedProps; | ||
| return ( | ||
| <MediaChip | ||
| ref={ref} | ||
| accessibilityLabel={accessibilityLabel} | ||
| background="bgTertiary" | ||
| end={ | ||
| <Icon | ||
| active | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,6 +127,7 @@ export const SelectChip = memo( | |
| accessibilityLabel={accessibilityLabel ?? value} | ||
| accessibilityRole="menu" | ||
| accessibilityState={{ disabled }} | ||
| background={active ? 'bgTertiary' : 'bgSecondary'} | ||
| disabled={disabled} | ||
| end={ | ||
| end ?? ( | ||
|
|
@@ -140,7 +141,7 @@ export const SelectChip = memo( | |
| /> | ||
| ) | ||
| } | ||
| inverted={active} | ||
| inverted={false} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you also remove this inverted? It defaults to false for MediaChip so we don't need to explicitly set it to false. |
||
| onPress={handleChipPress} | ||
| testID={testID} | ||
| {...props} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,8 @@ const TabComponent = <TabId extends string = string>({ | |
| return ( | ||
| <MediaChip | ||
| accessibilityState={{ selected: isActive }} | ||
| inverted={isActive} | ||
| background={isActive ? 'bgTertiary' : 'bgSecondary'} | ||
| inverted={false} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
| onPress={handleClick} | ||
| {...tabProps} | ||
| > | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,8 @@ const DefaultTabComponent = <TabId extends string = string>({ | |
| <MediaChip | ||
| ref={chipRef} | ||
| aria-selected={isActive} | ||
| invertColorScheme={isActive} | ||
| background={isActive ? 'bgTertiary' : 'bgSecondary'} | ||
| invertColorScheme={false} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets ask Cursor to "check this in all places, including removing the destructuring invertColorScheme" where no longer necessary. |
||
| onClick={handleClick} | ||
| role="tab" | ||
| width="max-content" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Can you ask Cursor to "remove
invertColorScheme={false}(and double check that it is safe to do so)"? Looks good to me to remove