From 5ddcf869c39e5e99da4410accd176421afe89d6a Mon Sep 17 00:00:00 2001 From: Caleb Jacob Date: Thu, 7 Nov 2024 19:16:31 -0700 Subject: [PATCH] Fix text styles combined with tooltip --- package.json | 2 +- src/components/Text.module.scss | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 94f157c..2c719a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@near-pagoda/ui", - "version": "2.0.2", + "version": "2.0.3", "description": "A React component library that implements the official NEAR design system.", "license": "MIT", "repository": { diff --git a/src/components/Text.module.scss b/src/components/Text.module.scss index 02308ff..a5a837a 100644 --- a/src/components/Text.module.scss +++ b/src/components/Text.module.scss @@ -36,8 +36,10 @@ a.text { button:focus-visible > &, a:hover > &, a:focus-visible > & { - color: var(--violet-11) !important; - text-decoration: underline; + &:not([aria-describedby]) { + color: var(--violet-11) !important; + text-decoration: underline; + } } &[data-clickable-highlight='true'] {