Skip to content

Conversation

@lloydaf
Copy link
Contributor

@lloydaf lloydaf commented May 9, 2025

What

In this PR, we are fixing the styling of the experimental Tooltip component

Media

Why

The current implementation of the Tooltip, that relies on css fails, since css files are not bundled by tsc (and does not seem to be changing in the future)

As a result, the css file has to be manually included after the bundling, or an alternative approach needs to be followed.

This PR fixes this issue by relying on the createGlobalStyle API from styled-components

How

  • use createGlobalStyle to replace the css usage
  • Include the TooltipStyles component in the DOM
  • delete the css file and it's import
  • remove the jest css plugin as it is no longer required

@lloydaf lloydaf requested a review from AlanFnz May 9, 2025 11:07
@lloydaf lloydaf merged commit 40ab351 into main May 9, 2025
5 checks passed
@lloydaf lloydaf deleted the no_jira/export-tooltip branch May 9, 2025 12:48
github-actions bot pushed a commit that referenced this pull request May 9, 2025
### [2.31.2](v2.31.1...v2.31.2) (2025-05-09)

### Bug Fixes

* fixing the tooltip styles ([#534](#534)) ([40ab351](40ab351))
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2025

🎉 This PR is included in version 2.31.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants