Git Product home page Git Product logo

Comments (14)

charkour avatar charkour commented on July 18, 2024 1

Perfect. Thank you! I can take a look soon.

from react-reactions.

charkour avatar charkour commented on July 18, 2024 1

Haha very interesting. Seems to be a bug. I have some time today and will work on a fix. Thanks for reporting!

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Hey @michaelshum, thanks for reporting this!

Could you provide a stackblitz or code sandbox with the reproduced issue? That will help me quickly diagnose the issue. Thanks!

from react-reactions.

michaelshum avatar michaelshum commented on July 18, 2024

Hey @charkour, here (https://codesandbox.io/s/optimistic-ully-gdmxd4?file=/pages/reactions.js) is a code sandbox with this issue, as well as the one I mentioned in #120.

In https://gdmxd4.sse.codesandbox.io/reactions you can see this issue: empty box before clicking, then after clicking it has the reaction emoji.

In https://gdmxd4.sse.codesandbox.io/subfolder/reactions you can see the other issue: it is an empty box before and after clicking. You can also see that the SlackSelector header is also a row of empty boxes in this case.

from react-reactions.

michaelshum avatar michaelshum commented on July 18, 2024

Hey @charkour, adding to this issue as I assume they're related: on Safari on iOS the default box is a maple leaf instead of an empty box
image

from react-reactions.

charkour avatar charkour commented on July 18, 2024

I tried to fix it and released version 0.6.2, but that did not seem to work. I updated the version on CodeSandbox and it breaks it even more.

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Will continue to try to get it to work.

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Thanks for your patience. This was fixed in v0.6.3 to include the Slack fonts in both the Counter and Selector component.

Thanks for reporting the issue!

from react-reactions.

michaelshum avatar michaelshum commented on July 18, 2024

Hey @charkour, thanks for the update. However now I'm getting that the emoji selection window doesn't have any emojis? Attaching a screenshot below:

image

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Oh yes. I knew something looked off.

Thanks, I can take a look tomorrow unless you'd like to!

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Note to self: I think it has to do with the SlackCSS component. It should be separated into one that is for the Selector and one that is for the Fonts

from react-reactions.

charkour avatar charkour commented on July 18, 2024

A fix was released in v0.6.4. It was a regression I have naively caused in v0.6.2. Sorry and thanks for reporting!

from react-reactions.

michaelshum avatar michaelshum commented on July 18, 2024

Thanks @charkour! Works for me now 🙏

One related item I asked about in #120 (comment) is that for files using SlackSelector in subdirectories (eg /subdir), I need to make a copy of the font files in my public folder (eg /public/subdir/fonts/slack-icons-Regular.ttf) to have it render properly. (Separately, I'm also making a copy of these files in /public/fonts).

I'm using Next.js - could this be a quirk of the framework, or am I missing the right way to import fonts correctly? Thanks very much.

from react-reactions.

charkour avatar charkour commented on July 18, 2024

Unfortunately, that's currently the right solution. When I ported over the old react reactions lib, it handled fronts this way. In the future, I'll aim to make it easier to use!

Sorry for the current inconvenience, but that's the proper way for now.

from react-reactions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.