Potential defect with _sidenav.scss (link padding left)


Topic: Potential defect with _sidenav.scss (link padding left)

dschaefers62 pro premium priority asked 2 years ago

Expected behavior

Attempted to override in _variables.scss

$sidenav-collapse-sidenav-link-padding-left: 2.5rem;

Actual behavior

Padding remained at 3.4rem. It seems _sidenav.scss is not using the $sidenav-collapse-sidenav-link-padding-left: variable.

I had to modify _sidenav.scss:

    **// djs fix in .sidnav {}**
  --#{$prefix}sidenav-collapse-sidenav-link-padding-left: #{$sidenav-collapse-sidenav-link-padding-left};

.sidenav-link {
    ...

    **//djs fix**
    padding-left: var(--#{$prefix}sidenav-collapse-sidenav-link-padding-left);
    // padding-left: 3.4rem;
  }

Resources (screenshots, code snippets etc.)


kpienkowska staff answered 2 years ago

That is a bug. We will fix it.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.1.0
  • Device: Desktop
  • Browser: Any
  • OS: Win 11
  • Provided sample code: No
  • Provided link: No