From 40653d3a25b52b4e0095dbdb4763b3c73df37b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20M=C3=BCller?= Date: Thu, 20 May 2021 10:23:59 -0300 Subject: [PATCH] fix: add aria hidden attribute to style tag Add aria hidden attribute to style tag to avoid screen readers to read its content fix #691 --- src/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 867d59732..bef9d0aaf 100755 --- a/src/index.js +++ b/src/index.js @@ -780,7 +780,7 @@ class ReactTooltip extends React.Component { .join(' '); if (html) { - const htmlContent = `${content}\n`; + const htmlContent = `${content}\n`; return ( (this.tooltipRef = ref)} data-id="tooltip" > -