Skip to content

Commit

Permalink
refactor(megaMenu): mobile - use buttons for menu section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantilis committed Sep 21, 2022
1 parent cb9315f commit a7b632f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ui/Header/HeaderMenuPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,22 @@ const NestedAccordion = ({ menuItems, renderMenuItem, pathName }) => {
</Accordion.Title>
);
let overview = cloneDeep(element);
overview.title = 'See all';
x.content = (
<Accordion.Content key={index}>
{renderMenuItem(overview, { className: 'item' })}
{/* Inverted right labeled button as a category title - Mobile */}
{renderMenuItem(
overview,
{ className: 'ui button inverted icon right labeled' },
{
children: (
<>
{/* Add word overview to titles */}
<span> overview</span>
<Icon className={'arrow right icon'} alt={'Title icon'} />
</>
),
},
)}
<FirstLevelContent
element={element}
renderMenuItem={renderMenuItem}
Expand Down

0 comments on commit a7b632f

Please sign in to comment.