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

refactor(navigation): implemented left navigation new fabric styles #854

Closed

Conversation

badejayayesubabu
Copy link
Collaborator

@badejayayesubabu badejayayesubabu commented Mar 25, 2021

Description

<navigation> : implement left navigation new fabric styles

What are the relevant story cards/tickets? Any additional PRs or other references?

Jira: SURF-2172

Before you request a review for this PR:

  • For UI changes, did you manually test in recent versions of modern browsers (Chrome, Firefox, and Safari)?
  • For UI changes, did you manually test in IE11 and legacy Edge?
  • Did you add component tests for any new code?
  • Did you run the component unit tests via yarn test to ensure all tests passed?
  • Did you include a screenshot of the component tests?
  • If you changed/added functionality, did you update the demo page and documentation?
  • If needed, did you add or modify the demo test page to test the changed/added functionality?
  • Did you assign reviewers?
  • In Jira, have you linked to this PR on the ticket(s)?

@netlify
Copy link

netlify bot commented Mar 25, 2021

Deploy preview for helix-ui ready!

Built with commit e388937

https://deploy-preview-854--helix-ui.netlify.app

Copy link
Contributor

@lalithkarikelli lalithkarikelli left a comment

Choose a reason for hiding this comment

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

DEV LGTM

border-left: 0.125rem solid $purple-500;
color: $purple-500;
margin-left: 0.3rem;
padding-left: 3.25rem !important;
Copy link
Member

Choose a reason for hiding this comment

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

We should avoid using !important...is it needed 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.

Yes I removed , Please review

}
}

hx-reveal {
a.active {
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to add styles based on the :active pseudo-class. Try using a:active 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.

Changes have been done, Please review

@@ -45,7 +45,7 @@ <h2 id="left-navigation">Left (Vertical) Navigation</h2>
<hx-icon class="toggle-icon" type="angle-down"></hx-icon>
</hx-disclosure>
<hx-reveal id="section-1-2" open>
<a href="#">Link 3-1</a>
<a href="#" class="active">Link 3-1</a>
Copy link
Member

Choose a reason for hiding this comment

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

To show this state in our documentation, you can add documentation level styles.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes have been done, Please review

@100stacks 100stacks marked this pull request as ready for review April 19, 2021 14:58
@100stacks 100stacks added the PR: Comments Provided PR: Comments Provided label Apr 19, 2021
@badejayayesubabu badejayayesubabu force-pushed the SURF-2172 branch 5 times, most recently from f391ea2 to c96654b Compare April 21, 2021 16:37
@100stacks 100stacks removed the PR: Comments Provided PR: Comments Provided label Apr 21, 2021
@badejayayesubabu badejayayesubabu force-pushed the SURF-2172 branch 2 times, most recently from db437aa to 06c5a77 Compare April 22, 2021 11:26
Comment on lines 103 to 131
// ===== SUB-LEFT NAVIGATION =====
#sub-leftNav, #section-1, #section-1-2 {
> a:active, > a:focus {
border-left: 0.125rem solid $purple-500;
color: $purple-500;
font-weight: 600;
outline: none;
}
}

#sub-leftNav a:active, #sub-leftNav a:focus {
margin-left: 0.3rem;
padding-left: 0.8rem;
}

#section-1 > a:active, #section-1 > a:focus {
margin-left: 1.25rem;
padding-left: 1.063rem;
}

#section-1-2 > a:active, #section-1-2 > a:focus {
margin-left: 2.5rem;
padding-left: 1.125rem;
}
Copy link
Member

Choose a reason for hiding this comment

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

@badejayayesubabu let's chat about this approach. Normally, we avoid using ids.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changes have been done. Please review

@badejayayesubabu badejayayesubabu force-pushed the SURF-2172 branch 2 times, most recently from d3e4be1 to f45af00 Compare April 26, 2021 16:50
@@ -93,3 +99,32 @@
}
}//hx-reveal
}

// ===== SUB-LEFT NAVIGATION =====
Copy link
Member

Choose a reason for hiding this comment

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

This is better and very close!

In the screenshot, please see:

  • Primary Selected is bolder font when selected.
  • Secondary Selected has normal font when selected.
  • Please verify we have all nav states (e.g, disabled).
  • Please verify the proper padding when selected.
  • The specs include an example w/ Icon. We should have styles for these.

Screen Shot 2021-04-28 at 11 42 16 PM

@badejayayesubabu badejayayesubabu force-pushed the SURF-2172 branch 2 times, most recently from 520ab1a to 271d38c Compare May 4, 2021 14:57
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