Skip to content

Commit 89e5e65

Browse files
author
Abhishek Desai
committed
mgr/dashboard: fixed input field black after selecting an autofill browser input
fixes: https://tracker.ceph.com/issues/70720 Signed-off-by: Abhishek Desai <[email protected]>
1 parent f03aa38 commit 89e5e65

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div [ngClass]="pageURL ? 'modal' : ''">
22
<div [ngClass]="pageURL ? 'modal-dialog' : ''">
3-
<div class="modal-content">
3+
<div class="modal-content content-theme">
44
<div class="modal-header">
55
<h4 class="modal-title float-start">
66
<ng-content select=".modal-title"></ng-content>

src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use './src/styles/defaults/mixins';
2+
@use './src/styles/themes/content';
23

34
.modal-header {
45
@include mixins.hf;

src/pybind/mgr/dashboard/frontend/src/styles.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,14 @@ legend {
231231
float: none;
232232
margin-top: 1rem;
233233
}
234+
235+
// Fix for overridden browser autofill CSS.
236+
// This needs to be removed when using Carbon forms.
237+
input:-webkit-autofill,
238+
input:-webkit-autofill:hover,
239+
input:-webkit-autofill:focus,
240+
input:-webkit-autofill:active {
241+
box-shadow: 0 0 0 10px white inset !important;
242+
-webkit-text-fill-color: inherit !important;
243+
transition: background-color 5000s ease-in-out 0s;
244+
}

0 commit comments

Comments
 (0)