Skip to content

Commit 61d30a7

Browse files
committed
refactor: ActionMenu - update styling for searchbox and menu items, improve padding and border styles
1 parent ad794d6 commit 61d30a7

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/Shared/Components/ActionMenu/ActionMenu.component.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ export const ActionMenu = <T extends string | number = string | number>({
6969
{isSearchable && (
7070
<div
7171
role="search"
72-
className="action-menu__searchbox bg__primary px-12 py-8 border__secondary--bottom"
72+
className="action-menu__searchbox bg__primary border__secondary-translucent--bottom"
7373
>
7474
<CustomInput
7575
name="action-menu-search-box"
7676
value={searchTerm}
7777
placeholder="Search"
7878
onChange={handleSearch}
7979
fullWidth
80+
autoFocus
8081
/>
8182
</div>
8283
)}
@@ -125,13 +126,13 @@ export const ActionMenu = <T extends string | number = string | number>({
125126
</li>
126127
))
127128
) : (
128-
<li role="menuitem" className="border__secondary--top py-8 px-12">
129+
<li role="menuitem" className="py-8 px-12">
129130
<p className="m-0 fs-13 lh-20 fw-4 cn-7">No options</p>
130131
</li>
131132
)}
132133
</ul>
133134
{footerConfig && (
134-
<div className="bg__menu--secondary border__secondary--top">
135+
<div className="bg__menu--secondary border__secondary-translucent--top">
135136
<SelectPickerMenuListFooter menuListFooterConfig={footerConfig} />
136137
</div>
137138
)}

src/Shared/Components/ActionMenu/actionMenu.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
list-style: none;
33

44
&__group {
5-
border-top: 1px solid var(--border-secondary);
5+
border-top: 1px solid var(--border-secondary-translucent);
66

77
&:first-child {
88
border-top: none;
@@ -29,7 +29,7 @@
2929

3030
&__searchbox input {
3131
border: none;
32-
padding: 0;
32+
padding: 8px 12px;
3333
background-color: transparent;
3434
}
3535
}

src/Shared/Components/Header/HeaderWithCreateButton/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ export const getCreateActionMenuOptions = (createCustomAppURL: string): CreateAc
1313
componentType: 'link',
1414
to: createCustomAppURL,
1515
},
16-
],
17-
},
18-
{
19-
items: [
2016
{
2117
id: CreateActionMenuItems.CHART_STORE,
2218
label: 'From Chart store',

0 commit comments

Comments
 (0)