-
Notifications
You must be signed in to change notification settings - Fork 5
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
Badge style #22
Comments
You have to use a Something like this: const [count, setCount] = useState(0);
const ref = useRef();
React.useEffect(() => {
ref.current.unread().then(unreadCount => setCount(unreadCount));
}); Then you use the ref: <AnnounceKit
ref={ref}
widget="your announce kit url"
widgetStyle={{ display: 'none' }}
onWidgetClose={() => setCount(0)}
/> Also note the Also not that |
I was having a problem and saw that the problem is that the wrapper element for announcekit has a |
Hi,
We are using custom Bell icon in order to open up the widget, however we are still getting the red badge appear next to the bell icon.
see screenshot below:
We want to apply custom style in order to hide the badge (and the cursor too when hovering over it), Iv'e been trying:
It didn't work. We also have a problem to apply our own css because it has his own inline style which cannot be overridden.
Is there a way to handle to cursor and the visibility of the badge so we can see only our custom Bell icon?
The text was updated successfully, but these errors were encountered: