Skip to content

Commit 044439f

Browse files
sharidasrezaies
andcommittedMar 15, 2022
MDL-72481 theme_boost: Find the tab if it is inside the more dropdown
keep the selector limited to tablists to prevent infinite redirects Co-authored-by: Shamim Rezaie <[email protected]>
1 parent af496f2 commit 044439f

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed
 

‎theme/boost/amd/build/loader.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎theme/boost/amd/build/loader.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎theme/boost/amd/src/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const rememberTabs = () => {
4242
});
4343
const hash = window.location.hash;
4444
if (hash) {
45-
const tab = document.querySelector('.nav-link[href="' + hash + '"]');
45+
const tab = document.querySelector('[role="tablist"] [href="' + hash + '"]');
4646
if (tab) {
4747
tab.click();
4848
}

‎theme/boost/scss/moodle/moremenu.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
}
8787
}
8888
}
89-
/* TODO: MDL-72481: Update this style to also apply to aria-selected. */
89+
9090
.dropdown-item[aria-current="true"],
9191
.dropdown-item.active {
9292
background-color: transparent;

‎theme/boost/style/moodle.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -21469,8 +21469,7 @@ div.editor_atto_toolbar button .icon {
2146921469

2147021470
.moremenu {
2147121471
opacity: 0;
21472-
height: 60px;
21473-
/* TODO: MDL-72481: Update this style to also apply to aria-selected. */ }
21472+
height: 60px; }
2147421473
.moremenu.observed {
2147521474
opacity: 1; }
2147621475
.moremenu .nav-link {

‎theme/classic/style/moodle.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -21415,8 +21415,7 @@ div.editor_atto_toolbar button .icon {
2141521415

2141621416
.moremenu {
2141721417
opacity: 0;
21418-
height: 50px;
21419-
/* TODO: MDL-72481: Update this style to also apply to aria-selected. */ }
21418+
height: 50px; }
2142021419
.moremenu.observed {
2142121420
opacity: 1; }
2142221421
.moremenu .nav-link {

0 commit comments

Comments
 (0)
Please sign in to comment.