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

Override classes on slots using slot attributes #19

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

merhard
Copy link
Member

@merhard merhard commented Dec 6, 2024

Do not use component-level {slot name}_class attributes to customize the classes on slots. Instead use a :class attribute on the slot.

Example:

attr :content_class, :string
slot :content

slot :content do
  attr :class, :string
end

Resolves #8

Do not use component-level `{slot name}_class` attributes to customize
the classes on slots. Instead use a `:class` attribute on the slot.

Example:

```
attr :content_class, :string
slot :content

slot :content do
  attr :class, :string
end
```

Resolves #8
@merhard merhard merged commit 6f965d6 into main Dec 6, 2024
4 checks passed
@merhard merhard deleted the me/use-css-class-attributes-with-slots branch December 6, 2024 23:12
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.

don't have slot specific class attributes in the function component
2 participants