Skip to content

Commit c49ff59

Browse files
author
Daniel Ureña
committed
MDLSITE-7941 MDLSITE-7956: Improve waffle menu title and top bar site indication
1 parent 7bf4004 commit c49ff59

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/theme/Navbar/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default function NavbarWrapper(props) {
8181
<a className={styles.nav_link} href="https://tracker.moodle.org"><span>Tracker</span></a>
8282
</li>
8383
<li>
84-
<a className={styles.nav_link} href="https://moodledev.io/"><span>Development</span></a>
84+
<a className={styles.nav_link} href="https://moodledev.io/"><span className={styles.active}>Development</span></a>
8585
</li>
8686
<li>
8787
<a className={styles.nav_link} href="https://lang.moodle.org"><span>Translation</span></a>
@@ -121,7 +121,8 @@ export default function NavbarWrapper(props) {
121121
className={styles.nav_link}
122122
type="button"
123123
onClick={() => openMenu('waffle_menu')}
124-
aria-label="Toggle sites menu"
124+
aria-label="Other Moodle Sites"
125+
title="Other Moodle Sites"
125126
>
126127
<i className={styles.fa_waffle} />
127128
</button>

src/theme/Navbar/index.module.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,22 @@
186186
padding-left: 0.5rem;
187187
background: none !important;
188188
border: 0 !important;
189+
text-decoration: none;
190+
}
191+
.moodlesitestopnavbar .nav_link span {
192+
height: 22px;
193+
}
194+
.moodlesitestopnavbar .nav_link span.active,
195+
.moodlesitestopnavbar .nav_link:hover span.active {
196+
color: #194866;
197+
border-bottom: 3px solid #f98012;
198+
height: 25px;
199+
}
200+
201+
.moodlesitestopnavbar .nav_link:hover span {
202+
color : #000000;
203+
border-bottom: 3px solid #f98012;
204+
height: 25px;
189205
}
190206

191207
.moodlesitestopnavbar .mobile_menu{

0 commit comments

Comments
 (0)