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

Optional css class argument of elements below body #6

Open
benjamin-dreux opened this issue Oct 31, 2024 · 0 comments
Open

Optional css class argument of elements below body #6

benjamin-dreux opened this issue Oct 31, 2024 · 0 comments

Comments

@benjamin-dreux
Copy link

After Distinct case for css classes, I understand that my proposition doesn't quite fit with this project. And I respect this desire to protect what is a important idea of this project.

Still I feel that attrClass is too long for something that probably the most used html attribute.

So, what I propose for all element that are only make sens bellow body is to add an argument that would only be a short and for calling attrClass

    .div("first-class second-class")
    .__()

Which doesn't mean that the current form should be retired.

.div()
   .attrClass("first-class second-class)
.__()

I think both should add content to the same attribute
So with the following

.div("first-class")
    .attrClass("second-class")
.__()

should produce the following output

<div class="first-class second-class"></div>

In the hope to help enhance this already pretty nice project

@benjamin-dreux benjamin-dreux changed the title Oprional css class argument of elements below body Optional css class argument of elements below body Nov 1, 2024
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

No branches or pull requests

1 participant