Skip to content

Fix bad RGB syntax#405

Merged
thecrypticace merged 3 commits into
mainfrom
fix/bad-rgb
Sep 23, 2025
Merged

Fix bad RGB syntax#405
thecrypticace merged 3 commits into
mainfrom
fix/bad-rgb

Conversation

@thecrypticace

Copy link
Copy Markdown
Contributor

Fixes #404

@RobinMalfait RobinMalfait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bye bye ,

Comment thread src/styles.js
@@ -14,14 +14,16 @@ const opacity = (color, opacity) => {
// values.
let hex = color.replace('#', '')
hex = hex.length === 3 ? hex.replace(/./g, '$&$&') : hex

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah unrelated to this, but TIL about $&

@thecrypticace
thecrypticace merged commit bbb1c21 into main Sep 23, 2025
2 checks passed
@thecrypticace
thecrypticace deleted the fix/bad-rgb branch September 23, 2025 13:25
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.

Issue with <kbd> shadows due to incorrect rgb syntax

2 participants