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

Prominent references to DOC #539

Merged
merged 2 commits into from
May 6, 2022
Merged

Conversation

nasaownsky
Copy link
Collaborator

Description of the change

Added prominent DOC references

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Configuration change (adjusts configuration to achieve some end related to functionality, development, performance, or security)

Related issues

Closes #525

Checklists

Development

These boxes should be checked by the submitter prior to merging:

  • Manual testing against realistic data has been performed locally

Code review

These boxes should be checked by reviewers prior to merging:

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has been moved out of a Draft state, has no "Work In Progress" label, and has assigned reviewers
  • Potential security implications or infrastructural changes have been considered, if relevant

@coveralls
Copy link

coveralls commented Apr 21, 2022

Pull Request Test Coverage Report for Build 2238113413

  • 5 of 5 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.6%) to 86.184%

Totals Coverage Status
Change from base Build 2195396652: 1.6%
Covered Lines: 624
Relevant Lines: 693

💛 - Coveralls

@nasaownsky nasaownsky requested review from hobuobi and terryttsai and removed request for colincadams and macfarlandian April 25, 2022 12:00
Copy link
Contributor

@terryttsai terryttsai 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 to me, left a couple clarifying questions

@@ -72,6 +71,15 @@ const CoBranding = styled.div`
width: 100%;
`;

const DocButton = styled.a`
background: ${colors.caption};
color: ${colors.footerBackground} !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious what's the reason for using !important here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In Wrapper styles above in that component there is an a selector, that change the color of links. And this button is the link, so we need to override color property.

Copy link
Contributor

@terryttsai terryttsai Apr 26, 2022

Choose a reason for hiding this comment

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

That's interesting, I hadn't worked much in CSS before and looking into this, it's my understanding that this is because the wrapper's .Wrapper a css selector is more specific than the DocButton's .DocButton selector, so the Wrapper's a styles override DocButton's styles, is that right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, exactly

@@ -89,7 +91,7 @@ const SiteNavigation: React.FC<ShareButtonProps> = ({ openShareModal }) => {
params: { tenantId: tenant.id },
})}
>
{tenant.name}
{isTablet ? tenant.name : tenant.docName}
Copy link
Contributor

Choose a reason for hiding this comment

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

So we want to hide the docName if our width is tablet size? What about abbreviating the docName like "Pennsylvania DOC"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Screen Shot 2022-04-25 at 9 53 38 AM

Are we trying to avoid two lines of text like this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So we want to hide the docName if our width is tablet size? What about abbreviating the docName like "Pennsylvania DOC"?

cc @hobuobi

Copy link
Collaborator Author

@nasaownsky nasaownsky Apr 26, 2022

Choose a reason for hiding this comment

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

Are we trying to avoid two lines of text like this?

This not happens, when the App initially renders in smaller screen sizes. I assume this is the problem with useBreakpoint hook and its behavior on dynamic screen size change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what you mean by this not happens?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I mean the two lines case not happens, when we load page on small screens.

I saw this happening only when resizing window in DevTools.

Copy link

@hobuobi hobuobi left a comment

Choose a reason for hiding this comment

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

Almost everything looks good; however, I noticed an issue with the link at the bottom not fitting on the screen. Screenshot included.
Once fixed, will approve this!
Screen Shot 2022-04-27 at 1 26 06 PM

@nasaownsky
Copy link
Collaborator Author

Ping @hobuobi

@hobuobi hobuobi self-requested a review May 6, 2022 22:35
Copy link

@hobuobi hobuobi left a comment

Choose a reason for hiding this comment

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

All good to me after the last change!

@terryttsai terryttsai merged commit 5e756c2 into main May 6, 2022
@terryttsai terryttsai deleted the nasaownsky/525-doc-references branch May 6, 2022 22:37
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.

Prominent references to DOC
4 participants