Skip to content

Update logo and theme per Corporate Marketing request#378

Merged
nburwell merged 3 commits into2022-08-01from
2022-08-01_update_logo_and_theme
May 29, 2024
Merged

Update logo and theme per Corporate Marketing request#378
nburwell merged 3 commits into2022-08-01from
2022-08-01_update_logo_and_theme

Conversation

@nburwell
Copy link
Contributor

@nburwell nburwell commented May 23, 2024

This matches our platform and corporate website better (the logo and removing the sub text was the main driver), but also improves readability in general.

My goal was to remove as much unused CSS as possible, and then only change what was needed. Had to tweak a fair amount in the end, but was also able to fix some existing styling bugs along the way (like "Api documentation" no longer wraps on the side bar).

View it live (must be logged in using LastPass credentials):
https://developers.invoca.net/en/2022-08-01_update_logo_and_theme/index.html

OLD:
image
image

NEW:
image
image


Also updated the swagger UI (only used by SMS right now)
OLD:
image

NEW:
image


Also fixed the missing font file which led to broke glyphs like these:
OLD:
image

NEW:
image

Checklist

  • Find the Service owning team for these changes, and tag the team as "Reviewers" on this PR
  • Test the documentation changes on readthedocs as a private branch
  • If changing general content, have agreement on whether to apply to latest version or all versions (if all versions, provide links to the related PRs below)

nburwell added 2 commits May 23, 2024 10:40
…nts back to fix glyphs that just showed a unicode box instead
@nburwell nburwell requested review from a team, cgaroutte and laurenhedberggg and removed request for a team May 23, 2024 19:59
Copy link
Contributor

@cgaroutte cgaroutte left a comment

Choose a reason for hiding this comment

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

The new styling looks great. Just a few comments mostly based on reviewing the ReadtheDocs page itself.

border-bottom: 1px solid #eaeaea;
margin-bottom: 20px;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

After reviewing the changes on ReadtheDocs, it looks like the color of h3 elements will need to be updated from white to something darker. Right now there are a few h3 headers that cannot be read because they are white on white.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that, will take a look and fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in 549fcf5

@@ -526,16 +508,17 @@ div[role=navigation][aria-label~=breadcrumbs] {
.highlight-json .kc, .kd, .kn, .kp, .kr, .kt, .mf, .mh, .mi, .mo {
Copy link
Contributor

Choose a reason for hiding this comment

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

This may be out of scope, but while we're here, I wonder if there's anyway we could tweak the json highlighting for the Swagger UI to be in-line with the other API pages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was noticing the Swagger UI code blocks were hard to read (mainly the yellow JSON strings), but did confirm they were that way before as well and thus hadn't gotten worse -- so, I didn't pull on that thread. I'll see if there is anything quick

Copy link
Contributor

Choose a reason for hiding this comment

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

I have a vague recollection from when I first implemented this that it was something of a hassle to adjust the highlighting, which probably explains why I left it as the default colors... You may have better luck than me though.

Copy link
Contributor Author

@nburwell nburwell May 29, 2024

Choose a reason for hiding this comment

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

Short answer is no.. not without more research and likely updating the swagger JS.

They only support 7 themes, and you configure it in JS and that changes the colors per language and per element
https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/

I switched themes and cleaned up a few overrides, so it's more inline with our styling, but not matching the other blocks and not as readable still as I'd like. Unless we go with a dark background for the textareas, this was the best I could find:
image

@nburwell nburwell requested a review from cgaroutte May 29, 2024 21:43
Copy link
Contributor

@cgaroutte cgaroutte left a comment

Choose a reason for hiding this comment

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

Looks good.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants