-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add TreeSection
actions container styling
#1390
Conversation
:class="{ expanded: expanded }" | ||
@click="expanded = !expanded" | ||
@keydown.enter.self="toggleExpanded" |
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 makes it so ONLY the pane-header
listens for keydown.enter
otherwise focus on the children would have caused the toggle.
:class="expanded ? 'codicon-chevron-down' : 'codicon-chevron-right'" | ||
/> | ||
<h3 class="title">{{ title }}</h3> | ||
<div class="pane-header-title-container" @click="toggleExpanded"> |
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.
Created this, and used justify-content: space-between
to better handle toggleExpanded
in Vue.
This is not how VSCode structures the DOM or styles it, but it looks and behaves functionality the same.
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.
Looking good!
This PR adds more functionality and styling to the
TreeSection
:actions
container to place icons (currently hardcoded with one)@click
handling to the title only so clicking on an action doesn't causeexpanded
to be toggledTreeSection
when it is focused, andenter
is pressedPreview Video
CleanShot.2024-04-17.at.16.05.54.mp4
Intent
Part of #1333
Type of Change