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
@@ -115,9 +115,7 @@ test.local('can filter for data', async () => {
|
||||
expect(element.parentElement).toMatchInlineSnapshot(`
|
||||
<span>
|
||||
"j
|
||||
<span
|
||||
class="css-1cfwmd7-Highlighted eiud9hg0"
|
||||
>
|
||||
<span>
|
||||
son
|
||||
</span>
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user