# Kibana React Plugin CSS is affecting other areas of the site

**URL:** <https://discuss.elastic.co/t/kibana-react-plugin-css-is-affecting-other-areas-of-the-site/263936>\
**Category:** Kibana\
**Created:** [February 10, 2021, 9:46pm UTC](https://discuss.elastic.co/t/kibana-react-plugin-css-is-affecting-other-areas-of-the-site/263936 "2021-02-10T21:46:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devbot](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@devbot](https://discuss.elastic.co/u/devbot)\
**Post date:** [February 10, 2021, 9:46pm UTC](https://discuss.elastic.co/t/kibana-react-plugin-css-is-affecting-other-areas-of-the-site/263936/1 "2021-02-10T21:46:14Z")

</div>

I have a Kibana plugin, done in React, only intended as an element for Canvas Dashboard. However, I notice that certain CSS styling changes also affect other areas of the site when the plugin is deployed. Is there anything I can do to specify the "scope" of the plugin to not affect any page besides the whatever canvas dashboard it loads on?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [February 10, 2021, 9:55pm UTC](https://discuss.elastic.co/t/kibana-react-plugin-css-is-affecting-other-areas-of-the-site/263936/2 "2021-02-10T21:55:03Z")

</div>

Is your plugin making CSS changes or what is it doing?

If you are creating CSS I would make sure you target `.canvas` class so only children of that could be effected. Or you can use `.canvasWorkpad` class to only effect items on the workpad.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 10, 2021, 9:55pm UTC](https://discuss.elastic.co/t/kibana-react-plugin-css-is-affecting-other-areas-of-the-site/263936/3 "2021-03-10T21:55:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
