-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Unable to add class to RadioItem #1119
Comments
You should be able to provide any custom classes in the exported props: export let rounded: CssClasses = getContext('rounded');
export let padding: CssClasses = getContext('padding');
export let active: CssClasses = getContext('active');
export let hover: CssClasses = getContext('hover');
export let color: CssClasses = getContext('color');
export let fill: CssClasses = getContext('fill'); Tbf, they sound like they only take specific classes, but padding & rounding are always applied |
That’s a good work around! Since I want to adjust padding I could put font size in that class list. I’ll play around some more. |
@gwww Got a quick fix in place for this. This will be part of the next release this weekend! |
Thanks! So much appreciated! Glad I can help, even if it’s not code contributions. |
Current Behavior
Adding
class="<some class>"
is explicitly removed from RadioItem here: https:/skeletonlabs/skeleton/blob/master/src/lib/components/Radio/RadioItem.svelte#L51. As a result I'm unable to use Tailwind classes to tailor the appearance of a RadioItem.Work arounds are possible, e.g.: using a global style.
Some discussion here: https://discord.com/channels/1003691521280856084/1083254085047832586
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: