Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Tool tips #671

Closed
KPHowley opened this issue Dec 3, 2020 · 8 comments · Fixed by #732
Closed

Refactor: Tool tips #671

KPHowley opened this issue Dec 3, 2020 · 8 comments · Fixed by #732

Comments

@KPHowley
Copy link
Member

KPHowley commented Dec 3, 2020

Overview

Some of the tool tips are different on the page, we should refactor them to be consistent.

@KPHowley KPHowley added the role: front-end Front End Developer label Dec 8, 2020
@Jonathanko52 Jonathanko52 self-assigned this Dec 13, 2020
@Jonathanko52
Copy link
Member

Covered in #407, with pull request #681

@Jonathanko52
Copy link
Member

-Standardize sidebar and calculator strategies tooltips.
-Both move with mouse.
-Both have arrows.
-Darker blue test (same as current sidebar.)
-Border(same as strategies)
-Background white(same as strategies)

@Jonathanko52
Copy link
Member

Narrowed down that the sidebar uses tooltip.js(from the sidebar field) while the wizard uses react tooltips npm package. Should be a simple fix from here. Eta 1/7

@Jonathanko52
Copy link
Member

Pull request submitted

@Jonathanko52
Copy link
Member

Pull request submitted. Awaiting review.

@nclairesays
Copy link
Member

I approving JK's PR but this issue isn't closed yet. I'll work to continue refactoring this.

There are some files that could be deleted, some styling that's passed into a component when the component should already be responsible for its own styling. There's a lot of repetitive code in these tool tips so I will work to refactor and clean them up.

@nclairesays
Copy link
Member

Still need to fix the tool tip that explains the packages when you're on level 1. The ProjectsPackages.js uses the old tool t ip
image

nclairesays added a commit that referenced this issue Jan 20, 2021
#671 Refactored Sidebar and Calculator Tooltips
nclairesays added a commit that referenced this issue Jan 20, 2021
  - Remove  -webkit and -moz styling
  - Make tooltip icons responsible for its own styling instead of passing in containerStyle
  - Remove unused questionStyle and circleStyle from ToolTipIcon in RuleCalculation and Sidebar directories
@nclairesays
Copy link
Member

I did some additional refactoring on top of what JK already did (which has already been approved and merged in)

Mostly reorganizing files/components so that they are DRY

  • Created a Tooltip directory with ToolTipIcon.js and ToolTip.js. (This ToolTip.js is different from our previous versions of ToolTip.js)
  • These are the components we should be importing throughout the app, rather than importing directly from the library.
  • These two components are responsible for their own styling. Styling does not get passed into the component anymore.
  • Made all ToolTipIcons the same, with the option of making it a "medium" size via a prop

Bug FIx: Fixed the rendering of tooltip icon for Parking Provided / Baseline and City wide Parking baseline since the icon accidentally got added in

nclairesays added a commit that referenced this issue Jan 28, 2021
  - Remove unused code
  - Fix tooltip for parking baseline to only show up on tooltip icon (not label)
  - Rename variables and classname
  - Use jss theme colors when hovering on rows
  - Make RuleStrategy and RuleInput styles more consistent with each other
  - Restyled RuleStrategy so that columns and dropdowns are consistent and aligned
  - Refactor disabled styling & logic in RuleStrategy
  - Create new RuleStrategyLabel component
nclairesays added a commit that referenced this issue Jan 28, 2021
  - Remove unused code
  - Fix tooltip for parking baseline to only show up on tooltip icon (not label)
  - Rename variables and classname
  - Use jss theme colors when hovering on rows
  - Make RuleStrategy and RuleInput styles more consistent with each other
  - Restyled RuleStrategy so that columns and dropdowns are consistent and aligned
  - Refactor disabled styling & logic in RuleStrategy
  - Create new RuleStrategyLabel component
@entrotech entrotech added the refactor Release Note: Shows as System Update label Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

8 participants