ecamp / ecamp/ecamp3

Correct usage and implementations of readonly and disabled in textfields

Open
#3,895 1 comment 0 reactions 0 assignees View on GitHub
agents:ignore External feedback Ready for implementation type: Frontend UX/UI
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

Currently, a lot of text fields are disabled when the logged-in user does not have write permission for the field. This looks like this:
![current-image](https://user-images.githubusercontent.com/3001985/270313052-01907f92-4da2-420a-8e46-7a3ae7a3b544.png)
The current implementation results in hardly readable text that can't be selected or copied.


Generic components affected by this issue

- frontend/src/components/form/
- api/
- ApiCheckbox.vue
- ApiColorPicker.vue
- ApiDatePicker.vue
- ApiRichtext.vue
- ApiSelect.vue
- ApiSortable.vue
- ApiSwitch.vue
- ApiTextarea.vue
- ApiTextField.vue
- ApiTimePicker.vue
- base/
- ECheckbox.vue
- EColorPicker.vue
- EDatePicker.vue
- ERichtext.vue
- ESelect.vue
- ESwitch.vue
- ETextarea.vue
- ETextField.vue

Requirements:
- The listed components all support/allow `readonly` **and** `disabled` property
- Components listed should have the outline style if `!readonly && outlined`
- All usages of the property `disabled` on components listed, should use `readonly` instead

This should look like this:
![expected-image](https://user-images.githubusercontent.com/3001985/270319991-17ee7764-ea82-4169-980b-10cbae9d6521.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.