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

resolve issue 39 -smart bulletin and added nav structure for policies and audits section #188

Merged
merged 27 commits into from
Jul 14, 2023

Conversation

weiwang-gsa
Copy link
Contributor

@weiwang-gsa weiwang-gsa commented Jul 12, 2023

  • added navigation structure for policies and audits
  • added smart bulletins
  • resolve link button issue in individual audits

@weiwang-gsa weiwang-gsa changed the title added structure for smart bulletins resolve issue 39 Jul 14, 2023
@weiwang-gsa weiwang-gsa changed the title resolve issue 39 resolve issue 39 -smart bulletin and added nav structure for policies and audits section Jul 14, 2023
@weiwang-gsa weiwang-gsa marked this pull request as ready for review July 14, 2023 15:59
@@ -1,7 +1,6 @@
---
const { id, pages, headings, parent_path, title} = Astro.props;
const { id, pages, headings, parent_path, title, additional_menu=null} = Astro.props;
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't seem like the additional_menu props is used in the component. Can we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

definitely, will clean it up


---
<div class="display-flex margin-bottom-2" style="width:100%">
<img src={previousNavIcon} alt="left Arrow icon for navigation back to Policies and Audits"><a class="usa-link" href={`${import.meta.env.BASE_URL}${parent_nav_path}`}>Return to the {parent_nav_text}</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

We can talk about how these links will work when Kristen is back, but in general we don't want screen readers to see the icons. The code in https://designsystem.digital.gov/components/pagination/ is a good example — they implement the arrow icon with aria-hidden="true" role="img" to prevent screen readers from see the icon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, per our discussion, I keep current top nav using link (matching mockup) for now, once we talked to Kirsten, we can update the TopNav based on final decision, thanks!


<PageLayout title ={entry.data.title} >

<TopNav parent_nav_path="policies-and-audits/audits" parent_nav_text = "Audit Repository" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if the TopNav should be part of the menu component. There are two reasons:

  1. It is semantically part of the navigation so one could argue it belongs inside the <nav></nav> If we want to change this, we will probably need to alter the SideNav component to accept an optional text/link.
  2. In the prototype this link is vertically aligned with the content's main heading. When this component is in its own div, it pushed the main content down so it is no longer at the top of the page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Moved TopNav into Sidenav. code checked in

}
})
}
const { entry, entries} = Astro.props;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we use entries in the component. Can we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, will remove it

@mark-meyer mark-meyer self-requested a review July 14, 2023 19:43
Copy link
Contributor

@mark-meyer mark-meyer left a comment

Choose a reason for hiding this comment

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

Awesome! It looks great.

@weiwang-gsa weiwang-gsa merged commit 7cb74f8 into main Jul 14, 2023
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.

3 participants