mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-79063-master' of https://github.com/junpataleta/moodle
This commit is contained in:
commit
9bacc7efd8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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());
|
||||
}
|
||||
|
@ -2099,7 +2099,7 @@ a.disabled {
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
font-style: italic;
|
||||
color: #808080;
|
||||
color: $text-muted;
|
||||
}
|
||||
|
||||
body.lockscroll {
|
||||
|
@ -24960,7 +24960,7 @@ a.disabled {
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
font-style: italic;
|
||||
color: #808080;
|
||||
color: #6a737b;
|
||||
}
|
||||
|
||||
body.lockscroll {
|
||||
|
@ -24960,7 +24960,7 @@ a.disabled {
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
font-style: italic;
|
||||
color: #808080;
|
||||
color: #6a737b;
|
||||
}
|
||||
|
||||
body.lockscroll {
|
||||
|
Loading…
x
Reference in New Issue
Block a user