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

feat: tup-490 increase portal font-size #312

Merged
merged 6 commits into from
Sep 13, 2023

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Sep 5, 2023

Overview

Increase Portal UI font size, but ensure User News font size still matches CMS.

Related

Changes

  • changed font-size variables for portal
  • added new font-size variables for core-styles
  • changed responsiveness of MFA layout
  • changed font size variables for User News
    • so size does not change
    • so size still matches CMS
  • changed responsiveness of System Status layout

Testing

  1. Compare UI of this branch against main.
  2. All sections, verify <h1> size is +1px bigger.
    (e.g. "Dashboard")
  3. All sections, verify other sizes are +2px bigger.
    (except nav links, unless Design says these should also be bigger)
  4. Dashboard, verify User News sizes match CMS.
  5. All sections, verify no horizontal scrollbars at:
    (especially /portal/system-status)
    • 992px viewport width
    • 1200px viewport width
    • 1400px viewport width

UI

show all

1. <h1> is Bigger

before after
1 h1 size old 1 h1 size new

2. Other Font is Bigger

<h2>

before after
2 other A size old 2 other A size new

<th>

before after
2 other B size old 2 other B size new

pill

before after
2 other C size old 2 other C size new

<td>

before after
2 other D size old 2 other D size new

nav text — unchanged

before after
2 other E size old 2 other E size new

nav icon

before after
2 other F size old 2 other F size new

3. Dashboard User News — unchanged

Date — unchanged

before cms after
3 news A size old 3 news A size cms 3 news A size new

Title — unchanged

before cms after
3 news B size old 3 news B size cms 3 news B size new

Summary — unchanged

before cms after
3 news C size old 3 news C size cms 3 news C size new

4. No Horizontal Scrollbars

4.at.992px.mov
4.at.1200px.mov
4.at.1400px.mov

@wesleyboar wesleyboar force-pushed the task/tup-490-increase-portal-font-size branch 4 times, most recently from 2555d23 to 5498010 Compare September 6, 2023 15:20
CSS Modules compose rules in @media does not respect query.

So, pull the @media query into Mfa.module.css, thus no need to compose.

This means c-step-panels leaves message and responsive layout to client.

css-modules/css-modules#75
@wesleyboar wesleyboar force-pushed the task/tup-490-increase-portal-font-size branch from 5498010 to ddc9afa Compare September 6, 2023 15:27
@wesleyboar wesleyboar force-pushed the task/tup-490-increase-portal-font-size branch from bd8007b to b647f6a Compare September 6, 2023 17:31
@wesleyboar wesleyboar marked this pull request as ready for review September 6, 2023 17:32
Copy link
Member Author

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

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

Notes for reviewers.

The GitHub annotations are unrelated to this PR. I fix them in #314.

Copy link
Member Author

Choose a reason for hiding this comment

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

This prevents horizontal scrollbar on MFA section.

This complex fix is isolated in #315, but required here.

Copy link
Member Author

Choose a reason for hiding this comment

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

This prevents horizontal scrollbar on MFA section.

This complex fix is isolated in #315, but required here.

Copy link
Member Author

Choose a reason for hiding this comment

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

This prevents horizontal scrollbar on System Status section.

Copy link
Member Author

Choose a reason for hiding this comment

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

These changes keeps User News font sizes the same.

@wesleyboar wesleyboar changed the title feat: increase portal font-size feat: tup-490 increase portal font-size Sep 6, 2023
wesleyboar added a commit that referenced this pull request Sep 7, 2023
Another PR may require this value to change further:
#312
Copy link
Collaborator

@jarosenb jarosenb left a comment

Choose a reason for hiding this comment

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

LGTM, fonts/scroll behavior work as expected.

@jarosenb jarosenb merged commit bafc122 into main Sep 13, 2023
@jarosenb jarosenb deleted the task/tup-490-increase-portal-font-size branch September 13, 2023 15:05
wesleyboar added a commit that referenced this pull request Sep 13, 2023
jarosenb pushed a commit that referenced this pull request Oct 5, 2023
* feat: add link in Dashboard to "View all tickets"

* style: nx format:write

* enhance: show less tickets (to avoid scrollbar)

Another PR may require this value to change further:
#312

* enhance: show less news (to avoid scrollbar)

Also, do so via—
NEWS_DASHBOARD_DISPLAY_LIMIT
—to mimic clarity of—TICKETS_DASHBOARD_DISPLAY_LIMIT

* fix: consistent text casing for "view all"

* feat: limit projects on dash (to avoid scrollbar)

Also, do so via—
PROJECTS_DASHBOARD_DISPLAY_LIMIT
—to mimic clarity of—TICKETS_DASHBOARD_DISPLAY_LIMIT

* style: nx format:write

* fix: align "View all Tickets" vert. center

* Revert "fix: align "View all Tickets" vert. center"

This reverts commit 6d62c21.

The alignment will not be an issue after new branch:
enhance/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button

* fix: reduce dashboard display limit since #312

* fix: project ticket grid too much middle space

Designers do not intend nor like big gap. It's been around since Portal.

But it's been so difficult to fix… until  `project-ticket-grid` came.

I hadn't noticed the fix was possible until just now.
wesleyboar added a commit that referenced this pull request Nov 14, 2023
#331)

* feat: add link in Dashboard to "View all tickets"

* style: nx format:write

* enhance: show less tickets (to avoid scrollbar)

Another PR may require this value to change further:
#312

* enhance: show less news (to avoid scrollbar)

Also, do so via—
NEWS_DASHBOARD_DISPLAY_LIMIT
—to mimic clarity of—TICKETS_DASHBOARD_DISPLAY_LIMIT

* fix: consistent text casing for "view all"

* feat: limit projects on dash (to avoid scrollbar)

Also, do so via—
PROJECTS_DASHBOARD_DISPLAY_LIMIT
—to mimic clarity of—TICKETS_DASHBOARD_DISPLAY_LIMIT

* style: nx format:write

* fix: align "View all Tickets" vert. center

* Revert "fix: align "View all Tickets" vert. center"

This reverts commit 6d62c21.

The alignment will not be an issue after new branch:
enhance/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button

* fix: reduce dashboard display limit since #312

* fix: project ticket grid too much middle space

Designers do not intend nor like big gap. It's been around since Portal.

But it's been so difficult to fix… until  `project-ticket-grid` came.

I hadn't noticed the fix was possible until just now.

* Fix/tup 599 dashboard tall header (#337)
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