Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

sk8jp
Copy link

@sk8jp sk8jp commented Jul 26, 2025

Fix invalid use of rgba() with hex color codes

Summary

This pull request replaces the incorrect usage of rgba(#ffffff, 0) with the proper transparent keyword.

Details

The original code used the following CSS:

color: rgba(#ffffff, 0);
background-color: rgba(#ffffff, 0);

This syntax is invalid in standard CSS. While some CSS preprocessors like Sass may allow similar shorthand forms, using rgba() with a hex code as the first argument is not supported in standard CSS and may cause parsing issues or errors in certain environments.

Fix:

color: transparent;
background-color: transparent;

The keyword transparent is equivalent to rgba(0, 0, 0, 0) and is the most readable and widely compatible way to apply full transparency.

Benefits

  • Improves compatibility with standard CSS parsers
  • Avoids potential errors or misinterpretations in CSS tools
  • Enhances readability and maintainability of the code

Thank you for your work on this project!

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.