diff --git a/mon-pix/app/components/module/_navbar.scss b/mon-pix/app/components/module/_navbar.scss index 8c78391f22b..0611b1c2d5e 100644 --- a/mon-pix/app/components/module/_navbar.scss +++ b/mon-pix/app/components/module/_navbar.scss @@ -37,4 +37,8 @@ color: var(--pix-primary-700); background-color: var(--pix-neutral-20); } + + &:active { + background-color: var(--pix-neutral-100); + } } diff --git a/mon-pix/app/components/module/navbar.gjs b/mon-pix/app/components/module/navbar.gjs index 01fc8107647..3c04f9b8e81 100644 --- a/mon-pix/app/components/module/navbar.gjs +++ b/mon-pix/app/components/module/navbar.gjs @@ -44,10 +44,6 @@ export default class ModulixNavbar extends Component { return this.grainsWithIdAndTranslatedType.length - 1; } - isActive(index) { - return index + 1 === this.grainsWithIdAndTranslatedType.length; - } - @action onMenuItemClick(grainId) { this.closeSidebar(); diff --git a/mon-pix/app/components/module/passage.gjs b/mon-pix/app/components/module/passage.gjs index e107fe6c1d7..9f3578342d6 100644 --- a/mon-pix/app/components/module/passage.gjs +++ b/mon-pix/app/components/module/passage.gjs @@ -196,6 +196,12 @@ export default class ModulePassage extends Component { }); } + @action + async goToGrain(grainId) { + const element = document.getElementById(`grain_${grainId}`); + this.modulixAutoScroll.focusAndScroll(element); + } +