-
Notifications
You must be signed in to change notification settings - Fork 292
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(sidebar): Toggle button #1268
Conversation
Verified that @ConradJChan has signed the CLA. Thanks for the pull request! |
Will this preserve the behavior where clicking on a highlighted section (like the activity feed chat bubble), will also hide/show the sidebar? |
@booc0mtaco yep! |
<div className="bcs-SidebarNav-tabs"> | ||
{hasActivity && ( | ||
<SidebarNavButton | ||
data-resin-target={SIDEBAR_NAV_TARGETS.ACTIVITY} |
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.
Decoupled the data-testid
's from the constants used for the data-resin-target
's
const SidebarNavButton = ({ children, interactionTarget, isOpen, onNavigate, sidebarView, tooltip }: Props) => { | ||
const SidebarNavButton = ({ | ||
children, | ||
'data-resin-target': dataResinTarget, |
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.
Can probably use ...rest
, instead? Up to you.
* feat(sidebar): Toggle button * chore: PR comments and add unit tests * chore: fix classes * chore: add e2e tests * chore: update README.md * chore: decouple resin tags from data testids
* feat(sidebar): Toggle button * chore: PR comments and add unit tests * chore: fix classes * chore: add e2e tests * chore: update README.md * chore: decouple resin tags from data testids
TODO: