Merge branch 'MDL-79063-master' of https://github.com/junpataleta/moodle

This commit is contained in:
Andrew Nicols 2023-08-25 00:11:05 +08:00
commit 9bacc7efd8
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

@ -83,7 +83,8 @@ export default class extends BaseComponent {
};
// Component css classes.
this.classes = {
DISABLED: `disabled`,
DISABLED: `text-body`,
ITALIC: `font-italic`,
};
}
@ -673,6 +674,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);
});
}
@ -687,6 +689,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

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

View File

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

View File

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