react-simple-star-rating icon indicating copy to clipboard operation
react-simple-star-rating copied to clipboard

[v5.1.7] Rating displays vertically by default using tailwind

Open michael-2509 opened this issue 2 years ago • 7 comments

michael-2509 avatar Feb 22 '23 11:02 michael-2509

Same issue. <Rating emptyStyle={{ display: "flex" }} fillStyle={{ display: "-webkit-inline-box" }} /> This should help

aybolid avatar Feb 22 '23 18:02 aybolid

.style-module_emptyIcons__Bg-FZ { display: flex !important; }

njoromyke avatar Feb 26 '23 09:02 njoromyke

In Next JS

njoromyke avatar Feb 26 '23 09:02 njoromyke

Same issue. <Rating emptyStyle={{ display: "flex" }} fillStyle={{ display: "-webkit-inline-box" }} /> This should help

Thanks!!

renatoastra avatar Mar 31 '23 13:03 renatoastra

The solution of using <Rating emptyStyle={{ display: "flex" }} fillStyle={{ display: "-webkit-inline-box" }} /> appears to no longer work for the latest Safari Version: 16.5.1. Working great in other browsers, just safari latest.

Anyone else experiencing this or found other solutions?

vandercloak avatar Jul 03 '23 17:07 vandercloak

I got it working... But its VERY hacky... but in the hopes it saves someone else some time, here is what worked for me:

<Rating
  emptyStyle={{ display: "flex" }}
  SVGstyle={{ display: "inline-block", marginBottom: 10 }}
  style={{ marginBottom: -10 }}
  ...
/>

The stars were positioned wrong for some reason and the two margin styles resolved it for me so they yellow stars showed up correctly.

vandercloak avatar Jul 03 '23 17:07 vandercloak

In Next.js 13 with Flowbite.

elvismdev avatar Sep 20 '23 08:09 elvismdev

emptyStyle={{ display: "flex" }} SVGstyle={{ display: "inline-block", marginBottom: 10 }} style={{ marginBottom: -10 }}

hover is not working.

Defite avatar Apr 21 '25 14:04 Defite