Paint a destructive Dialog button with Nextcloud's error text color.
The theme's error background is a pale pink, so a white label looked disabled.
This commit is contained in:
@@ -67,16 +67,16 @@ const dialogStyle = `<style>
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
#exapp-dialog-agree {
|
||||
#exapp-dialog-actions button#exapp-dialog-agree {
|
||||
border-color: transparent;
|
||||
background: var(--color-primary-element, #00679e);
|
||||
color: var(--color-primary-element-text, #fff);
|
||||
}
|
||||
#exapp-dialog-agree.destructive {
|
||||
background: var(--color-error, #e9322d);
|
||||
color: #fff;
|
||||
#exapp-dialog-actions button#exapp-dialog-agree.destructive {
|
||||
background: var(--color-error, #ffe7e7);
|
||||
color: var(--color-error-text, #8a0000);
|
||||
}
|
||||
#exapp-dialog-agree:disabled { opacity: 0.45; cursor: default; }
|
||||
#exapp-dialog-actions button#exapp-dialog-agree:disabled { opacity: 0.45; cursor: default; }
|
||||
</style>`
|
||||
|
||||
const dialogMarkup = `<dialog id="exapp-dialog" aria-modal="true">
|
||||
|
||||
Reference in New Issue
Block a user