I have a dialog as you can see here:
<template >
<ux-dialog >
<ux-dialog-body>
<div t="logbook.delete-logs">Möchten Sie alle Logbücher löschen?</div>
</ux-dialog-body>
<ux-dialog-footer>
<button attach-focus="true" click.trigger="controller.cancel()" t="logbook.cancel">Abbrechen</button>
<button click.trigger="controller.ok()" t="logbook.ok">Ok</button>
</ux-dialog-footer>
</ux-dialog>
</template>
and related view-model:
import { inject } from 'aurelia-dependency-injection'
import { DialogController } from 'aurelia-dialog'
@inject(DialogController)
export class DeleteLogbook {
public controller: DialogController
constructor (controller: DialogController) {
this.controller = controller
}
}
I want to change the colour of dialog's border. I want to use Aurelia concept for this purpose. Could you please tell me the solution?
As @Jesse suggested in his comment, you can override the styles of certain elements.
in this case, you simply add the following to your stylesheet
however one thing to note is that, if you are to load the stylesheet containing the above in your aurelia
mainwhich is very common (or in any other way before loadingaurelia-dialog), you will have to add!importantto your styles.it's because the actual package is been loaded after your own styles and they will naturally override yours.
however, it's better to load your styles in
appor by component (such as each component having it's own stylesheet) to avoid!importantin your styles