Open maxratajczak opened 2 years ago
Hi @maxratajczak
Try to add the flex
className to emptyClassName
prop:
<Rating
...
emptyClassName="flex"
...
/>
Or add some CSS to your stylesheet:
.react-simple-star-rating .filled-icons {
display: inline-block !important;
}
.react-simple-star-rating .empty-icons {
display: flex !important;
}
Tried it all Shows Vertical please fix it
I have the same issue 👀
Change SVG element display property from block to inline-block. I am using Tailwind CSS so I can directly do this by adding class "inline-block". You might need to create "inline-block" custom class. <Rating ... SVGclassName="inline-block" />
Thanks @HardeepsinhSodha !!
The following fixed me:
<Rating
...
SVGstyle={{display: "inline-block"}}
/>
By the way I use Chakra UI, its global CSS might break the CSS.
@HardeepsinhSodha, @awran5 I am using tailwind and have tried the SVGclassName approach and it still appears vertical
@HardeepsinhSodha, @awran5 I am using tailwind and have tried the SVGclassName approach and it still appears vertical
Same issue here!
When I display the rating, the icons are stacked vertically, I tried setting it in a flexbox but it didn't help.