N
Novu4mo ago
rahul

How do I style the notification counter in web component?

How do I style the notification counter in web component?
43 Replies
Pawan Jain
Pawan Jain4mo ago
@rahul Can you please share screenshot what you want to style?
rahul
rahulOP3mo ago
Notification counter circle is covering the bell
No description
rahul
rahulOP3mo ago
@Pawan Jain How to reduce its size And also can we change the bell icon in web component? If yes, how to do it? @Emil ?
Novu_Bot
Novu_Bot3mo ago
@rahul, you just advanced to level 1!
empe
empe3mo ago
@rahul What notification center are you using? Is it the new <Inbox /> or the old notification center?
rahul
rahulOP3mo ago
old one bellButton: { root: { dot: { width: '12px !important', height: '12px !important' }, svg: { width: '20px !important', height: '20px !important' } } } I have tried this but didn't work @Emil
empe
empe3mo ago
What do you want to change? The icon it self? Or just the way it looks?
rahul
rahulOP3mo ago
Currently I want to change the red dot size I want to make it smaller
empe
empe3mo ago
const styles = {
unseenBadge: {
root: {
color: 'white',
background: 'red',
borderRadius: '50%',
padding: '2px 6px',
fontSize: '12px'
}
}
};
const styles = {
unseenBadge: {
root: {
color: 'white',
background: 'red',
borderRadius: '50%',
padding: '2px 6px',
fontSize: '12px'
}
}
};
Tell me if it helps
rahul
rahulOP3mo ago
No, it didn't work
empe
empe3mo ago
rahul
rahulOP3mo ago
which component should i use in this?
empe
empe3mo ago
I think it's the unseenBadge Can you share all your notification center design code?
empe
empe3mo ago
Tell me how it's going
rahul
rahulOP3mo ago
I have changed the size of the bell icon to 20px
empe
empe3mo ago
Is it good?
rahul
rahulOP3mo ago
The size has changed but i m not able to change the red dot size
Novu_Bot
Novu_Bot3mo ago
@rahul, you just advanced to level 2!
rahul
rahulOP3mo ago
nc.styles = { footer: { root: { display: "none" }, }, bellButton: { root: { svg: { width: "20px !important", height: "20px !important", }, }, dot: { rect: { fill: "red", width: "10px", height: "10px", x: 6, y: 2, }, }, }, }; Did you try?
empe
empe3mo ago
@Pawan Jain Maybe I'm missing something?
rahul
rahulOP3mo ago
@Emil With this I m able to resize the dot dot: { rect: { fill: "red", width: "10px", height: "10px", x: 6, y: 2, }, @Emil Can change the color of dot?
Pawan Jain
Pawan Jain3mo ago
@rahul Try changing fill : red to another color
rahul
rahulOP3mo ago
@Pawan Jain Something black is their
No description
Pawan Jain
Pawan Jain3mo ago
did you change it to fill: black
rahul
rahulOP3mo ago
no Its still red What should I do? @Pawan Jain @Emil ?
Pawan Jain
Pawan Jain3mo ago
Hey Rahul Give me some time. I will check out this later today
rahul
rahulOP3mo ago
Okay @Pawan Jain @Emil @Pawan Jain Can we change the bell icon with any other icon? Any update on this?
rahul
rahulOP3mo ago
Can we also do it in web-component? @Pawan Jain @Emil
Pawan Jain
Pawan Jain3mo ago
Unfortunately, it is not possible to change in web component
rahul
rahulOP3mo ago
Can we have fill version of bell icon?
No description
Novu_Bot
Novu_Bot3mo ago
@rahul, you just advanced to level 3!
rahul
rahulOP3mo ago
@Pawan Jain
Pawan Jain
Pawan Jain3mo ago
@rahul I tried changing fill color, Its working for me Are you facing any issue?
rahul
rahulOP3mo ago
how can I do it? @Pawan Jain
Pawan Jain
Pawan Jain3mo ago
change the color fill : "blue"
rahul
rahulOP3mo ago
Under which object should I add fill element? Are you referring to bell icon?
Pawan Jain
Pawan Jain3mo ago
dot: {
rect: {
// here
fill: "blue",
width: "10px",
height: "10px",
x: 6,
y: 2,
},
dot: {
rect: {
// here
fill: "blue",
width: "10px",
height: "10px",
x: 6,
y: 2,
},
empe
empe3mo ago
@rahul Was it solved for you? Have you manage to achive your goal?
rahul
rahulOP3mo ago
ya @empe. Thanks
Pawan Jain
Pawan Jain3mo ago
@rahul Can we mark this support post as resolved?
rahul
rahulOP3mo ago
yes
Want results from more Discord servers?
Add your server