andrewdwallo / filament-selectify

Two alternative fields for toggles, radio buttons, and other selectors.
MIT License
36 stars 6 forks source link

[Bug]: grid direction does not work in a fieldset component #19

Closed saadj55 closed 3 months ago

saadj55 commented 5 months ago

What happened?

I am trying to get he layout in a horizontal manner but the provided gridDirection() method does not work for me. I tried with gridDirection('row') but it didn't render its as a row of radio buttons. What could be the reason?

How to reproduce the bug

try to render the component with gridDirection('row') in a fieldset component

Package Version

2.0

PHP Version

8.3.3

Laravel Version

10.0

Which operating systems does with happen with?

Windows

Notes

No response

saadj55 commented 5 months ago

Upon further tesitng, it doesn't work even outside of a fieldset.

andrewdwallo commented 5 months ago

Can you send me a picture of it and also give me the code you used for it?

ronfuller commented 3 months ago

@saadj55 I had the same problem, if you have a custom theme, you can fix with the following:

.selectify-button-group-grid { @apply md:grid-cols-2 !important; }

@andrewdwallo I believe line 18 in button-group-blade needs to have "md:grid-cols-2" in order for the row direction to work correctly

andrewdwallo commented 3 months ago

Fixed by #21