MDL-80015 course: Fix category 'More' dropdown alignment

Co-authored-by: Stephen Sharpe <[email protected]>
This commit is contained in:
Mikel Martín
2023-11-21 14:15:45 +01:00
co-authored by Stephen Sharpe
parent 94ad185d09
commit bde37edf3c
+4 -4
View File
@@ -70,14 +70,14 @@
"options": [
{
"url": "\/course\/index.php\/?categoryid=281",
"string": "Action 1"
"string": "Action 1",
"attributes": [
{
"name": "data-id",
"value": "1"
},
{
"name": "aria-role",
"name": "data-action",
"value": "test"
}
]
@@ -105,9 +105,9 @@
{{#str}}moremenu{{/str}}
</button>
<div id="moreactionsmenu" class="dropdown-menu" aria-labelledby="dropdown-actions" role="menu">
<div id="moreactionsmenu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-actions" role="menu">
{{#options}}
<a role="menuitem" class="dropdown-item" {{#attributes}}{{name}}="{{value}}"{{/attributes}} href="{{url}}" tabindex="-1">{{string}}</a>
<a role="menuitem" class="dropdown-item" {{#attributes}}{{name}}="{{value}}" {{/attributes}} href="{{url}}" tabindex="-1">{{string}}</a>
{{/options}}
</div>
</div>