Closed Jeremy-Hibiki closed 11 months ago
Describe the bug
The 3-digit hex color is not parsed as expected.
A color string like #f8c is currently processed by padding zero (#0f080c) instead of repeating the digit (#ff88cc).
#f8c
#0f080c
#ff88cc
To Reproduce
Use the JavaScript snippet
// index.js const color = '#f8c';
The background and the gutter icon are black (#0f080c).
Expected Behavior
Environment
OS: Windows 11
IDE: IntelliJ IDEA 2022.3.2 (Ultimate Edition) Build #IU-223.8617.56, built on January 26, 2023
Plugin version: 14.0.0
Screenshots
With this plugin:
Disable the plugin and use built-in "CSS Color Background" and "Color Preview Gutter Icon", the result is expected.
will be fixed on next release
Describe the bug
The 3-digit hex color is not parsed as expected.
A color string like
#f8c
is currently processed by padding zero (#0f080c
) instead of repeating the digit (#ff88cc
).To Reproduce
Use the JavaScript snippet
The background and the gutter icon are black (
#0f080c
).Expected Behavior
#ff88cc
).Environment
OS: Windows 11
IDE: IntelliJ IDEA 2022.3.2 (Ultimate Edition) Build #IU-223.8617.56, built on January 26, 2023
Plugin version: 14.0.0
Screenshots
With this plugin:
![image](https://user-images.githubusercontent.com/62326866/217597025-d636959d-fa07-4848-ac11-3379f80d3515.png)
Disable the plugin and use built-in "CSS Color Background" and "Color Preview Gutter Icon", the result is expected.![image](https://user-images.githubusercontent.com/62326866/217597556-bafc9c75-1c97-41f0-b34c-e4f01525e2a5.png)