Skip to content

Commit

Permalink
css: Make all modal buttons half opaque when disabled, instead of grey.
Browse files Browse the repository at this point in the history
Earlier, the primary modal button always turned grey on being disabled,
while other modal buttons remained as is in light mode, and grey in dark
mode. Now the styling is made consistent across all modal buttons, by
giving them all 50% opacity when disabled.
  • Loading branch information
N-Shar-ma authored and timabbott committed Apr 28, 2024
1 parent 6ee0825 commit 7104c06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions web/styles/dark_theme.css
Expand Up @@ -104,11 +104,6 @@
}
}

.modal__btn:disabled {
opacity: 1;
background-color: hsl(0deg 0% 83% / 50%);
}

& table.table-striped thead.table-sticky-headers th {
background-color: hsl(0deg 0% 0%);

Expand Down
5 changes: 1 addition & 4 deletions web/styles/modal.css
Expand Up @@ -129,6 +129,7 @@

&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
}

Expand All @@ -151,10 +152,6 @@
margin-left: 12px;
background-color: hsl(240deg 96% 68%);
color: hsl(0deg 0% 100%) !important;

&:disabled {
background-color: hsl(0deg 0% 65%);
}
}

#read_receipts_error,
Expand Down

0 comments on commit 7104c06

Please sign in to comment.