Skip to content

Commit 557ef84

Browse files
Update omnibar widget design and copy (#1843)
* Refactor omnibar UI: update styles, layout, and placeholder text Co-authored-by: randerson <[email protected]> * Adjust omnibar layout, width, and placeholder text for improved UI Co-authored-by: randerson <[email protected]> * Adjust omnibar width using CSS global selector and remove fixed width Co-authored-by: randerson <[email protected]> * Checkpoint before follow-up message --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 659a231 commit 557ef84

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed

special-pages/pages/new-tab/app/components/App.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ body[data-animate-background="true"] {
3232
max-width: calc(504 * var(--px-in-rem));
3333
}
3434

35+
:global([data-entry-point="omnibar"]) {
36+
max-width: calc(620 * var(--px-in-rem));
37+
}
38+
3539
:global(.vertical-space) {
3640
padding-top: 1rem;
3741
padding-bottom: 1rem;

special-pages/pages/new-tab/app/omnibar/components/AiChatForm.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
border: none;
1212
box-sizing: content-box;
1313
color: var(--ntp-text-normal);
14+
font-weight: 500;
1415
max-height: 10lh;
1516
padding: 11px 15px 0;
1617
resize: none;

special-pages/pages/new-tab/app/omnibar/components/Container.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
background: var(--ntp-surface-tertiary);
88
border-radius: 12px;
99
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
10-
margin: 0 calc(-1 * var(--sp-1));
1110
overflow: hidden;
1211
position: relative;
1312
transition: height 200ms ease;

special-pages/pages/new-tab/app/omnibar/components/Omnibar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
.logo {
1010
margin-bottom: var(--sp-4);
11-
width: 123px;
11+
width: 164px;
1212
}

special-pages/pages/new-tab/app/omnibar/components/SearchForm.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
background: none;
1414
border: none;
1515
color: var(--ntp-text-normal);
16+
font-weight: 500;
1617
height: var(--sp-8);
1718
left: var(--sp-1);
1819
padding-bottom: 0;

special-pages/pages/new-tab/app/omnibar/integration-tests/omnibar.page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class OmnibarPage {
2222
}
2323

2424
chatInput() {
25-
return this.context().getByRole('textbox', { name: 'Chat privately with Duck.ai' });
25+
return this.context().getByRole('textbox', { name: 'Ask privately' });
2626
}
2727

2828
chatSubmitButton() {

special-pages/pages/new-tab/app/omnibar/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Title of the omnibar widget in the customizer panel."
55
},
66
"omnibar_aiChatFormPlaceholder": {
7-
"title": "Chat privately with Duck.ai",
7+
"title": "Ask privately",
88
"description": "Placeholder text for the AI chat input field."
99
},
1010
"omnibar_aiChatFormSubmitButtonLabel": {
@@ -28,7 +28,7 @@
2828
"description": "Label for the AI chat tab."
2929
},
3030
"omnibar_searchFormPlaceholder": {
31-
"title": "Search or enter address",
31+
"title": "Search privately",
3232
"description": "Placeholder text for the search input field."
3333
},
3434
"omnibar_hideDuckAi": {

special-pages/pages/new-tab/public/locales/en/new-tab.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"description": "Title of the omnibar widget in the customizer panel."
131131
},
132132
"omnibar_aiChatFormPlaceholder": {
133-
"title": "Chat privately with Duck.ai",
133+
"title": "Ask privately",
134134
"description": "Placeholder text for the AI chat input field."
135135
},
136136
"omnibar_aiChatFormSubmitButtonLabel": {
@@ -154,7 +154,7 @@
154154
"description": "Label for the AI chat tab."
155155
},
156156
"omnibar_searchFormPlaceholder": {
157-
"title": "Search or enter address",
157+
"title": "Search privately",
158158
"description": "Placeholder text for the search input field."
159159
},
160160
"omnibar_hideDuckAi": {

0 commit comments

Comments
 (0)