gribnoysup / react-yandex-maps

Yandex Maps API bindings for React
MIT License
329 stars 116 forks source link

Is it possible to add styles to Balloon? #286

Closed adelinyshka closed 3 years ago

adelinyshka commented 3 years ago

Hi :relaxed: I check documentation for Yandex Maps API, so there is possible to style Balloon, is it possible also in react-yandex-maps?

I just need rounded corners of Balloon

Thank you)

mmarkelov commented 3 years ago

hello, @adelinyshka! Of course you can use templateLayoutFactory like in your provided example, but i suppose it will quite complicated, cause you will need to control balloon logic and its styling by yourself. If you just need rounded corners you can use some hacky solution that should help:

[class*="-balloon"] {
  border-radius: 6px;
}
adelinyshka commented 3 years ago
[class*="-balloon"] {
  border-radius: 6px;
}

Yeap! Thats works! U r amazing! Thx a lot for promt reply! :heart: