Added color options for highlighting search terms
Summary: This diff builds on the previous ones by enabling other colors to be used as highlights for the search terms. Current color options are: yellow(default), red, blue, green. Possible extensions to this feature could include allow the user to enter a custom hex-color string and use that as the highlight color. Changelog: DataTable will now have option to have its search terms highlighted in the search results by toggling and customizing the highlight colors in the menu bar Reviewed By: mweststrate Differential Revision: D37383163 fbshipit-source-id: c81e383c0570ef5efbf3171b92b81a8fb2e55ea7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f39ede6f7
commit
f46cf2b0ce
@@ -21,7 +21,12 @@ export const theme = {
|
||||
textColorSecondary: 'var(--flipper-text-color-secondary)',
|
||||
textColorPlaceholder: 'var(--flipper-text-color-placeholder)',
|
||||
textColorActive: 'var(--light-color-button-active)',
|
||||
searchHighlightBackground: antColors.yellow[3],
|
||||
searchHighlightBackground: {
|
||||
yellow: antColors.yellow[3],
|
||||
red: antColors.red[3],
|
||||
green: antColors.green[3],
|
||||
blue: antColors.blue[3],
|
||||
} as const,
|
||||
selectionBackgroundColor: 'var(--flipper-primary-background-wash)',
|
||||
disabledColor: 'var(--flipper-disabled-color)',
|
||||
backgroundDefault: 'var(--flipper-background-default)',
|
||||
|
||||
Reference in New Issue
Block a user