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

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

Open
michael-2509 opened this issue Feb 22, 2023 · 7 comments
Open

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

michael-2509 opened this issue Feb 22, 2023 · 7 comments

Comments

@michael-2509
Copy link

No description provided.

@aybolid
Copy link

aybolid commented Feb 22, 2023

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

@njoromyke
Copy link

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

@njoromyke
Copy link

In Next JS

@renatoastra
Copy link

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

Thanks!!

@vandercloak
Copy link

vandercloak commented Jul 3, 2023

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
Copy link

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.

@elvismdev
Copy link

In Next.js 13 with Flowbite.

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

No branches or pull requests

6 participants