Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3485175
D14161.id46529.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14161.id46529.diff
View Options
diff --git a/native/components/primary-button.react.js b/native/components/primary-button.react.js
--- a/native/components/primary-button.react.js
+++ b/native/components/primary-button.react.js
@@ -45,6 +45,8 @@
return [styles.buttonText, styles.invisibleLoadingText];
} else if (variant === 'danger') {
return [styles.buttonText, styles.dangerButtonText];
+ } else if (variant === 'outline') {
+ return [styles.buttonText, styles.outlineButtonText];
}
return styles.buttonText;
}, [
@@ -53,6 +55,7 @@
styles.disabledButtonText,
styles.invisibleLoadingText,
styles.dangerButtonText,
+ styles.outlineButtonText,
]);
const colors = useColors();
@@ -95,7 +98,7 @@
},
buttonText: {
fontSize: 18,
- color: 'panelForegroundLabel',
+ color: 'whiteText',
textAlign: 'center',
padding: 12,
},
@@ -121,6 +124,9 @@
dangerButtonText: {
color: 'redText',
},
+ outlineButtonText: {
+ color: 'panelForegroundLabel',
+ },
spinner: {
position: 'absolute',
width: '100%',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 6:50 PM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674499
Default Alt Text
D14161.id46529.diff (1 KB)
Attached To
Mode
D14161: [native] update `PrimaryButton` to handle light theme
Attached
Detach File
Event Timeline
Log In to Comment