# EUI ":first-child" warning help

**URL:** <https://discuss.elastic.co/t/eui-first-child-warning-help/353083>\
**Category:** Kibana\
**Created:** [February 12, 2024, 2:35pm UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083 "2024-02-12T14:35:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david10/32/131661_2.png) [@David10](https://discuss.elastic.co/u/David10)\
**Post date:** [February 12, 2024, 2:35pm UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083/1 "2024-02-12T14:35:03Z")

</div>

Hello, I've been receiving the following warning everytime I insert an tag within my plugin:  
"The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type"."

I'm not using the ":first-child" class anywhere in my own code, and I believe it is coming from the implementation of EUIText.

I'm trying to get rid of this warning but I'm not sure the best way to do this. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [February 14, 2024, 10:12am UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083/2 "2024-02-14T10:12:15Z")

</div>

Hi @David10,

Welcome! Which version of Kibana are you building a plugin for?

---

<div class="post-metadata">

**Author:** ![David10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david10/32/131661_2.png) [@David10](https://discuss.elastic.co/u/David10)\
**Post date:** [February 14, 2024, 6:15pm UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083/3 "2024-02-14T18:15:04Z")

</div>

Hi, @carly.richmond , I am using Kibana version 8.12.0. Thanks.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [February 15, 2024, 10:02am UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083/4 "2024-02-15T10:02:28Z")

</div>

Hi @David10,

Thanks for confirming. I've had a quick scan of the Kibana and EUI repos and I only see closed issues from last year:

1. [Kibana Observability](https://github.com/elastic/kibana/issues/162867)
2. [EUI](https://github.com/elastic/eui/issues/6113)

Are you using a particular version of EUI? If you've identified it in the latest EUIText you could either raise a [bug report GitHub issue](https://github.com/elastic/eui/issues/new/choose) for it or, raise a PR with the change yourself if you've already fixed it.

---

<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 14, 2024, 10:02am UTC](https://discuss.elastic.co/t/eui-first-child-warning-help/353083/5 "2024-03-14T10:02:38Z")

</div>

Closed on March 14, 2024, 10:02am UTC

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