Skip to content

Commit c38eb65

Browse files
committed
fix: add scoped styles for dialog delete button in light and dark themes
1 parent 90bce1e commit c38eb65

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

custom/TwoFactorsPasskeysSettings.vue

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,4 +417,36 @@
417417
if (!date) return '';
418418
return dayjs.utc(date).local().format(`${coreStore.config?.datesFormat} ${coreStore.config?.timeFormat}` || 'YYYY-MM-DD HH:mm:ss');
419419
}
420-
</script>
420+
</script>
421+
422+
<style>
423+
/* Scoped styles for dialog buttons, because there is no different way to style them */
424+
.dialog-delete-button.dialog-delete-button {
425+
background-color: rgb(179, 27, 27);
426+
color: white;
427+
border: 1px solid rgb(153, 27, 27);
428+
}
429+
430+
.dialog-delete-button.dialog-delete-button:hover {
431+
background-color: rgb(153, 27, 27);
432+
}
433+
434+
.dialog-delete-button.dialog-delete-button:active {
435+
background-color: rgb(127, 20, 20);
436+
}
437+
438+
/* Dark theme styles for delete button */
439+
.dark .dialog-delete-button.dialog-delete-button {
440+
background-color: rgb(220, 38, 38);
441+
color: white;
442+
}
443+
444+
.dark .dialog-delete-button.dialog-delete-button:hover {
445+
background-color: rgb(185, 28, 28);
446+
}
447+
448+
.dark .dialog-delete-button.dialog-delete-button:active {
449+
background-color: rgb(153, 27, 27);
450+
}
451+
452+
</style>

0 commit comments

Comments
 (0)