Skip to content

Pull `reactstrap` `Tooltip` implementation into the codebase

Created by: valerybugakov

Problem statement

We want to get rid of Bootstrap styles. Since reactstrap depends on bootstrap styles, we need to extract component implementations that we use.

Success criteria

  1. All Tooltip imports from reactstrap are removed.
  2. reactstrap Tooltip implementation is pulled into our codebase into the Wildcard package as is.

Implementation details

  • Tooltip implementation link.
  • Create a separate folder ReactstrapTooltip for pulled implementation in client/wildcard/src/components/Tooltip
  • Copy all required files into this folder without changes.
  • Add README.md saying that this folder will be deleted with the re-implementation of the Tooltip component later linking this issue.
  • Explicitly add dependencies required for the component to our package.json like react-popper based on the version that we rely on right now in our yarn.lock.

Time estimate

  • Pull requests with ~450 lines changed should take 4 hours at maximum. Ping the reviewer in the spec pull request if time-consuming changes are required.
  • Split the work into multiple pull requests if the total diff is bigger than 450 lines of code.