Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify style attributes #2675

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Simplify style attributes #2675

merged 1 commit into from
Feb 12, 2024

Conversation

johnspade
Copy link
Contributor

In the age of Tailwind and long class chains in HTML, it's a bit cumbersome to wrap every class name in quotes, especially when copying styles and classes from tutorials or documentation. This PR changes the value type to String for class and style attributes in the HTML templates.

@@ -49,7 +49,7 @@ trait Attributes {

final def citeAttr: PartialAttribute[String] = PartialAttribute("cite")

final def classAttr: PartialAttribute[List[String]] = PartialAttribute("class")
final def classAttr: PartialAttribute[String] = PartialAttribute("class")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main change

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (21989c9) 64.55% compared to head (7a430ff) 64.52%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2675      +/-   ##
==========================================
- Coverage   64.55%   64.52%   -0.03%     
==========================================
  Files         145      145              
  Lines        8607     8607              
  Branches     1521     1571      +50     
==========================================
- Hits         5556     5554       -2     
- Misses       3051     3053       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johnspade johnspade marked this pull request as ready for review February 9, 2024 18:37
@jdegoes jdegoes merged commit d15bd26 into zio:main Feb 12, 2024
14 checks passed
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.

3 participants