mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Readonly editors
Summary: Grist should not prevent read-only viewers from opening cell editors since they usually provide much more information than is visible in a cell. Every editor was enhanced with a read-only mode that provides the same information available for an editor but doesn't allow to change the underlying data. Test Plan: Browser tests Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2842
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.formula_field::before {
|
||||
.formula_field::before, .formula_field_edit::before {
|
||||
background-color: #D0D0D0;
|
||||
}
|
||||
.formula_field_edit::before {
|
||||
.formula_field_edit:not(.readonly)::before {
|
||||
background-color: var(--grist-color-cursor);
|
||||
}
|
||||
.formula_field.invalid::before {
|
||||
@@ -45,6 +45,10 @@
|
||||
background-color: var(--grist-color-cursor);
|
||||
color: #ffb6c1;
|
||||
}
|
||||
|
||||
.readonly_editor .formula_field_edit::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.invalid-text input {
|
||||
|
||||
Reference in New Issue
Block a user