@@ -30,8 +30,8 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
3030 }
3131
3232 const sharedContainerClassName = cn (
33- 'block w-full text-left py-3 font-semibold text-light-grey transition-colors hover:no-underline hover:text-light-grey-hover active:text-light-grey-active xl :font-normal xl :px-4 xl :py-3 xl :rounded-lg xl :hover:text-white xl :hover:bg-dark-blue-active xl :whitespace-nowrap' ,
34- isActive && 'xl :bg-dark-blue-active xl :text-white' ,
33+ 'block w-full text-left py-3 font-semibold text-light-grey transition-colors hover:no-underline hover:text-light-grey-hover active:text-light-grey-active lg :font-normal lg :px-4 lg :py-3 lg :rounded-lg lg :hover:text-white lg :hover:bg-dark-blue-active lg :whitespace-nowrap group-has-[[data-rewards-button]]/navbar:lg:px-2 group-has-[[data-rewards-button]]/navbar:xl:px-4 ' ,
34+ isActive && 'lg :bg-dark-blue-active lg :text-white' ,
3535 ) ;
3636
3737 // Toggle menu's open state
@@ -40,11 +40,11 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
4040 return 'items' in item ? (
4141 < div >
4242 { /* Mobile/tablet submenu */ }
43- < div className = "xl :hidden" >
43+ < div className = "lg :hidden" >
4444 < button
4545 className = { cn (
4646 sharedContainerClassName ,
47- 'flex items-center justify-between cursor-pointer xl :gap-x-2' ,
47+ 'flex items-center justify-between cursor-pointer lg :gap-x-2' ,
4848 ) }
4949 type = "button"
5050 onClick = { onAccordionTriggerClick }
@@ -57,7 +57,7 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
5757 />
5858 </ button >
5959
60- < AccordionAnimatedContent isOpen = { isSubMenuOpen } className = "pb-3 xl :hidden" >
60+ < AccordionAnimatedContent isOpen = { isSubMenuOpen } className = "pb-3 lg :hidden" >
6161 < SubMenuContent
6262 { ...item }
6363 items = { item . items . map ( i => ( {
@@ -70,7 +70,7 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
7070
7171 { /* XL and up dropdown */ }
7272 < Dropdown
73- className = "hidden xl :block"
73+ className = "hidden lg :block"
7474 menuClassName = "mt-5 shadow-none border-0 bg-background-active"
7575 triggerOnHover
7676 optionsDom = { ( { setIsDropdownOpened } ) => {
@@ -91,8 +91,8 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
9191 < button
9292 className = { cn (
9393 sharedContainerClassName ,
94- 'flex items-center justify-between cursor-pointer xl :gap-x-2' ,
95- isDropdownOpened && 'xl :text-white xl :bg-dark-blue-active' ,
94+ 'flex items-center justify-between cursor-pointer lg :gap-x-2' ,
95+ isDropdownOpened && 'lg :text-white lg :bg-dark-blue-active' ,
9696 ) }
9797 type = "button"
9898 >
@@ -113,7 +113,7 @@ export const MenuItem: React.FC<MenuItemProps> = ({ item, onClick }) => {
113113 < span > { item . label } </ span >
114114
115115 { item . isBeta && (
116- < div className = "bg-blue px-1.5 py-0.5 rounded-full text-b2s text-white" >
116+ < div className = "bg-blue px-1.5 py-0.5 rounded-full text-b2s text-white hidden max-lg:inline-block xl:inline-block " >
117117 { t ( 'layout.menu.beta' ) }
118118 </ div >
119119 ) }
0 commit comments