Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui/styles: Quote file types in stylus loop (#1949)
The file type icons CSS rules are generated from a simple loop over all the types we're supporting. One of those types is `text`. However, if those are not quoted, stylus will use the value of any existing variable with that given name in interpolations instead of the string itself. Since we import the `button` component module from `cozy-ui` and a `text` variable is defined in this module, the generated rule for this file type was a mess and the associated icon would not be displayed in the Recent list in the main window. By quoting the types in the loop argument, we make sure those will be interpreted as strings and not variables.
- Loading branch information