Mobile nav button theming messed up. Help, likely not a bug.

Created on 23 March 2024, about 1 year ago
Updated 16 April 2024, 12 months ago

Problem/Motivation

I just created my first multi-level TB MM on a project and it looks great on the desktop browser.

I put some nav classes on the container for dark theme and primary color and it looks nice.
navbar navbar-dark bg-primary bg-edge2edge justify-content-center

I did some scss theming in my theme to do some hover reverse color highlighting and making my secondary menu have a different color theme.

/var/www/varbase/docroot/themes/custom/lab_theme/components/organisms/navbar$ cat navbar.scss
$sj_maroon: #ad3d3d;
$sj_gold: #CCA966;
$primary:       $sj_maroon;

$a-tags: 'a, a:active, a:hover, a:visited';
$a-tags-hover: 'a:active, a:hover';

#block-lab-theme-secondarymenu-2 {
--bs-navbar-padding-y: 0;
}

#block-lab-theme-secondarymenu-2 {
//#block-st-jude-theme-secondarymenu {
  #{$a-tags} {
    color: $sj_gold;
    text-decoration: none;
  }
  #{$a-tags-hover} {
    background-color: $sj_gold;
    color: $sj_maroon;
  }
}

//.tbm-link .level-2 .no-link .tbm-group-title {
.tbm-subnav>.tbm-item>.tbm-link-container>.tbm-link {
        color: $sj_maroon !important;
}

.tbm-submenu {
  background-color: $sj_gold !important;

  #{$a-tags} {
    color: $sj_maroon !important;
    text-decoration: none;
  }
  #{$a-tags-hover} {
    background-color: #c39e57 !important;
//    color: $sj_gold;
  }
}

But on mobile, I am getting the link buttons with only a very narrow portion colored.

Has anyone ever run in to this and can help me figure out my mistake?

Thanks

๐Ÿ’ฌ Support request
Status

Active

Version

3.0

Component

Documentation

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States HeneryH

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024