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

Restyle the status bar #3672

Merged
merged 5 commits into from
Jan 11, 2024
Merged

Restyle the status bar #3672

merged 5 commits into from
Jan 11, 2024

Conversation

frjo
Copy link
Contributor

@frjo frjo commented Nov 29, 2023

Fixes #3669

Make the status bar work with different fonts, viewports etc. and always align.

@frjo frjo force-pushed the enhancement/restyle_status_bar branch from 2f10333 to b90d5f1 Compare November 29, 2023 18:55
@frjo frjo changed the title Restyle the status bar WIP: Restyle the status bar Nov 29, 2023
@frjo
Copy link
Contributor Author

frjo commented Nov 29, 2023

More work needed, this code is used for submissions, projects, on dashboard etc. Only tested on submissions so far.

@frjo frjo force-pushed the enhancement/restyle_status_bar branch 4 times, most recently from 4290823 to bf8760d Compare December 5, 2023 09:52
@frjo frjo changed the title WIP: Restyle the status bar Restyle the status bar Dec 5, 2023
@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter Status: Needs testing Tickets that need testing/qa labels Jan 5, 2024
@wes-otf
Copy link
Contributor

wes-otf commented Jan 5, 2024

@frjo doing user testing it looks like a huge improvement! I did noticell a few weird things come up, like the checks were now a little odd looking and the red progress indicator wouldn't always make it to the needed stage:
Screenshot 2024-01-05 at 17 52 52
Screenshot 2024-01-05 at 17 53 58

I cleared my cache & tested in an incognito window to confirm and the results were the same, but let me know if there's another step I might've missed.

@frjo frjo force-pushed the enhancement/restyle_status_bar branch from bf8760d to 758ec56 Compare January 6, 2024 16:08
@frjo
Copy link
Contributor Author

frjo commented Jan 7, 2024

@wes-otf Thanks for testing. Fixed the bug where the bar did not get filled on accept/dismissed status.

That the checkmarks are not aligned in the dot is most likely font related. With the system-ui font stack you get different fonts on different plattforms. Needs to be adjusted so it looks nice everywhere.

In your screenshot the checkmark is not white like it is for me, another browser/plattform issue I guess.

@wes-otf
Copy link
Contributor

wes-otf commented Jan 7, 2024

@frjo ahh that totally makes sense. My testing was with Firefox & MacOS if that's helpful. Would it be better to potentially use the heroicons check instead of the character so the appearance is guaranteed regardless of platform?

@wes-otf
Copy link
Contributor

wes-otf commented Jan 7, 2024

I'm definitely not well versed history of this feature so apologies if that's something that's already been tried ^

@frjo
Copy link
Contributor Author

frjo commented Jan 8, 2024

The checkmark should be white for all now.

If we can not easily make it center for all browsers/plattforms, replacing it with a SVG or maybe force it to another font is a good options I think.

@frjo
Copy link
Contributor Author

frjo commented Jan 9, 2024

@wes-otf Now I think I finally found the issue. The first fix did nothing in Chrome.

Chrome does not set colour on unicode checkmark 2714, it works on 2713. Apparently 2714 is considered an emoji and Chrome does not change colour on these, Webkit does.

@frjo
Copy link
Contributor Author

frjo commented Jan 11, 2024

@wes-otf Do you feel this is good to go now? Planing to make a new release this week.

font-weight: bold;
background: $color--primary;
border-color: $color--primary;
content: "✓";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! The only super small thing I saw on test was that the applicant dashboard's status bar still had a black color for the check. Might be a good idea to keep the additions of 49ffdbd

Suggested change
content: "✓";
content: "✓";
color: $color--white;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-01-11 at 09 33 05

applicant dashboard in question ^

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed that one, thanks for testing!

@frjo frjo force-pushed the enhancement/restyle_status_bar branch from 43f02eb to a0b0481 Compare January 11, 2024 16:54
@frjo frjo added Status: Tested - approved for live ✅ and removed Status: Needs testing Tickets that need testing/qa labels Jan 11, 2024
@frjo frjo merged commit bfa90ac into main Jan 11, 2024
9 checks passed
theskumar pushed a commit that referenced this pull request Jan 17, 2024
Fixes #3669

Make the status bar work with different fonts, viewports etc. and always
align.
theskumar added a commit that referenced this pull request Jan 17, 2024
* main:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…ve-partners-app

* maintainance/remove-public-news:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…emove-people-app

* maintainance/remove-partners-app:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…emove-projects-app

* maintainance/3-remove-people-app:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…-remove-public-forms-app

* maintainance/4-remove-projects-app:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…ce/6-remove-public-lab-round-page

* maintainance/5-remove-public-forms-app:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…ainance/7-remove-standard-pages

* maintainance/6-remove-public-lab-round-page:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
…/8-cookie-settings

* maintainance/7-remove-standard-pages:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
theskumar added a commit that referenced this pull request Jan 17, 2024
* main:
  Remove public "search promotions" app (#3724)
  docs: update fetch-depth=0 and update copyright year (#3723)
  Restyle the status bar (#3672)
  Replace black with ruff formatter (#3688)
@frjo frjo deleted the enhancement/restyle_status_bar branch February 12, 2024 11:46
wes-otf pushed a commit that referenced this pull request May 7, 2024
Fixes #3669

Make the status bar work with different fonts, viewports etc. and always
align.
wes-otf pushed a commit that referenced this pull request May 8, 2024
Fixes #3669

Make the status bar work with different fonts, viewports etc. and always
align.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Tested - approved for live ✅ Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status bar labels are frequently misaligned/off-center
2 participants