Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invisible error message in attachments
In commit cc6f939 we made the images and documents file inputs invisible (instead of using `display: none`) in order to make it possible to attach images and documents using the keyboard. However, since the error messages associated to these inputs has the same HTML class as the inputs, we were also hiding them (the `display: none` didn't affect the error messages because they've also got the `is-visible` class). Using the `[type=file]` selector we make it more explicit that we only want to style these inputs. I'm not adding a test for this scenario because technically the text is there and I'm not sure how to test for the presence of invisible elements.
- Loading branch information