Merge branch 'MDL-79063-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-08-25 00:13:21 +08:00
commit 748acadd05
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
6 changed files with 9 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,8 @@ export default class extends BaseComponent {
};
// Component css classes.
this.classes = {
DISABLED: `disabled`,
DISABLED: `text-body`,
ITALIC: `font-italic`,
};
}
@ -427,6 +428,7 @@ export default class extends BaseComponent {
const targets = this.getElements(this.selectors.ADDSECTION);
targets.forEach(element => {
element.classList.toggle(this.classes.DISABLED, locked);
element.classList.toggle(this.classes.ITALIC, locked);
this.setElementLocked(element, locked);
});
}
@ -441,6 +443,7 @@ export default class extends BaseComponent {
element.style.pointerEvents = 'none';
element.style.userSelect = 'none';
element.classList.add(this.classes.DISABLED);
element.classList.add(this.classes.ITALIC);
element.setAttribute('aria-disabled', true);
element.addEventListener('click', event => event.preventDefault());
}

View File

@ -2087,7 +2087,7 @@ a.disabled {
text-decoration: none;
cursor: default;
font-style: italic;
color: #808080;
color: $text-muted;
}
body.lockscroll {

View File

@ -14809,7 +14809,7 @@ a.disabled {
text-decoration: none;
cursor: default;
font-style: italic;
color: #808080;
color: #6a737b;
}
body.lockscroll {

View File

@ -14809,7 +14809,7 @@ a.disabled {
text-decoration: none;
cursor: default;
font-style: italic;
color: #808080;
color: #6a737b;
}
body.lockscroll {