Skip to content

Commit a804fa5

Browse files
ENG-1840: Align advanced search highlight with Roam/BlueprintJS (#1117)
* ENG-1840: Align advanced search highlight with Roam/BlueprintJS styling. Replace custom purple selection chrome with Blueprint menu-item hover gray for result rows and native active states for filter/sort toolbar buttons. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix lint issues in advanced search dialog. Remove unnecessary querySelector type assertion and unused useMemo import. Co-authored-by: Cursor <cursoragent@cursor.com> * change hover color --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0e0c85f commit a804fa5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/roam/src/components/AdvancedNodeSearchDialog/AdvancedSearchDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ const ResultRow = ({
9696
onMouseEnter={onMouseEnter}
9797
role="option"
9898
style={{
99-
background: active ? "rgba(95, 87, 192, 0.08)" : undefined,
100-
boxShadow: active ? "inset 3px 0 0 #5f57c0" : undefined,
99+
background: active ? "rgba(167, 182, 194, 0.3)" : undefined,
100+
boxShadow: active ? "inset 3px 0 0 rgba(167, 182, 194, 0.3)" : undefined,
101101
}}
102102
>
103103
<Tag minimal style={getTagStyle(nodeConfig)}>

apps/roam/src/components/AdvancedNodeSearchDialog/DiscourseNodeTypeFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const DiscourseNodeTypeFilter = ({
257257
}
258258
className={
259259
isTriggerActive
260-
? "!bg-[rgba(95,87,192,0.1)] !text-[#5f57c0]"
260+
? "!bg-[rgba(167, 182, 194, 0.3)] !text-[#5f57c0]"
261261
: "!text-gray-600 hover:!bg-gray-100 hover:!text-gray-900"
262262
}
263263
disabled={!isFilterReady}

apps/roam/src/components/DiscourseNodeSortControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const DiscourseNodeSortControl = ({
121121
aria-label={`Sort by ${sortLabel}`}
122122
className={`${
123123
isTriggerActive
124-
? "!bg-[rgba(95,87,192,0.1)] !text-[#5f57c0]"
124+
? "!bg-[rgba(167, 182, 194, 0.3)] !text-[#5f57c0]"
125125
: "!text-gray-600 hover:!bg-gray-100 hover:!text-gray-900"
126126
}`}
127127
disabled={disabled}

0 commit comments

Comments
 (0)