Skip to content

Commit 539081f

Browse files
committed
feat: style disabled options, not just the field
1 parent 689ef7c commit 539081f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/css/chrome-options.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ body.show-tab-title .frame .mainview header {
314314
display: none;
315315
}
316316

317+
.chrome-bootstrap .disabled {
318+
opacity: 0.7;
319+
}
320+
317321
.chrome-bootstrap .preview-container {
318322
position: relative;
319323
padding: 0 1em;

src/js/base.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ chrome.options.addOption = (key, value, save, option) => {
6666
if (option.hidden) {
6767
$option.classList.add('hidden');
6868
} else if (option.disabled) {
69+
$option.classList.add('disabled');
6970
$option.querySelectorAll('input, select, textarea').forEach(($f) => {
7071
$f.setAttribute('disabled', true);
7172
});

0 commit comments

Comments
 (0)