Skip to content

Conversation

@turkoid
Copy link
Contributor

@turkoid turkoid commented Jan 4, 2026

Currently, if you use the short code for a hex color, #FFF or #abc it produces #FFFFFF and #abcabc. While the first one is correct, the second is not. In CSS, the format is RRGGBB.

This fixes that, adjusts some broken tests as well as add a new one.

@turkoid turkoid force-pushed the bug/hex-short-code branch from 81b6815 to 11ff0d0 Compare January 4, 2026 15:19
@Delgan
Copy link
Owner

Delgan commented Jan 12, 2026

Thank you!

@Delgan Delgan merged commit 2a2c59e into Delgan:master Jan 12, 2026
21 checks passed
@Delgan Delgan linked an issue Jan 12, 2026 that may be closed by this pull request
@turkoid turkoid deleted the bug/hex-short-code branch January 13, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect hex color short code handling

2 participants