-
Notifications
You must be signed in to change notification settings - Fork 26
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
refactor(navigation): implemented left navigation new fabric styles #854
Conversation
Deploy preview for helix-ui ready! Built with commit e388937 |
0346e32
to
4d34b4e
Compare
4d34b4e
to
a04b787
Compare
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
a04b787
to
42633b0
Compare
f391ea2
to
c96654b
Compare
db437aa
to
06c5a77
Compare
// ===== 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; | ||
} |
There was a problem hiding this comment.
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 id
s.
There was a problem hiding this comment.
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
d3e4be1
to
f45af00
Compare
@@ -93,3 +99,32 @@ | |||
} | |||
}//hx-reveal | |||
} | |||
|
|||
// ===== SUB-LEFT NAVIGATION ===== |
There was a problem hiding this comment.
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.
520ab1a
to
271d38c
Compare
271d38c
to
e388937
Compare
Description
<navigation>
: implement left navigation new fabric stylesWhat are the relevant story cards/tickets? Any additional PRs or other references?
Jira: SURF-2172
Before you request a review for this PR:
yarn test
to ensure all tests passed?