Skip to content

Commit

Permalink
Hide value of disabled input in popout
Browse files Browse the repository at this point in the history
I'm not sure if we want to do this on all fields, so just scoped it here for now.
  • Loading branch information
dacook committed Nov 29, 2023
1 parent 9ce511f commit ccc0c17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/webpacker/css/admin/products_v3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
font-size: inherit;
font-weight: inherit;

&:not(:focus):not(.changed) {
&:not(:focus):not(.changed):not([disabled]) {
border-color: transparent;
}
}
Expand Down Expand Up @@ -341,6 +341,10 @@
.field:last-child {
margin-bottom: 0;
}

input[disabled] {
color: transparent; // hide value completely
}
}
}
}

0 comments on commit ccc0c17

Please sign in to comment.