-
Notifications
You must be signed in to change notification settings - Fork 163
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
Use KDropdownMenu to render content nodes menus #4485
base: unstable
Are you sure you want to change the base?
Use KDropdownMenu to render content nodes menus #4485
Conversation
}" | ||
data-test="content-item" | ||
@click="handleTileClick" | ||
<DraggableHandle v-bind="draggableHandle"> |
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.
All these difs are just tab diffs since we are removing the and tags.
:class="{ | ||
disabled: copying, | ||
}" | ||
<VFlex |
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.
Idem, just tab diffs, the relevant changes starts in line 129
6c07f55
to
3035153
Compare
3035153
to
effd79d
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.
Hi @AlexVelezLl - overall I think a first pass-code read through looks good. When doing a little bit of manual QA, one problem I encountered was scrolling within the menu. I'm not totally sure what the expected behavior should be, actually, but when the open context menu opens and flows past the bottom of the viewport, I can't seem to scroll within it to see the bottom items.
This is probably (?) something to fix in KDS rather than here, and maybe requires some decision making of what the ideal behavior would be.
My only semi-considered opinion is that having a max height and scrolling might be better than having a very, very long menu. (i.e. a menu of the full screen height on a browser seems overwhelming). And maybe we could have a mobile interaction as well.
sorry that I did not consider this in the KDS review!
other than that I think things here look quite good and we can move forward with the feature into unstable once we get this sorted (and once we have the descendent behavior conversation)
Hi @marcellamaki, thank you!! And yes, previously I had added an
Update: This could be included in v5 in KDS without problem. What do you think about it? |
This PR was accitentally closed because I deleted the base branch after merging #4461. Reopening and retargeting to unstable. |
Summary
Description of the change(s) you made
Replaces VListTile, VMenu, and ContextMenuCloack with KDropdownMenu to show content nodes menus
Manual verification steps performed
Screenshots (if applicable)
Compartir.pantalla.-.2024-03-25.15_52_05.mp4
Reviewer guidance
How can a reviewer test these changes?
References
Closes #4403
Comments
This should be merged after KDS is released with learningequality/kolibri-design-system#583 merged.
Also, after replacing KDropdownMenu on the content node menus, there will be some issues on keyboard navigation that will be fixed when learningequality/kolibri-design-system#588 is fixed.
Contributor's Checklist
PR process:
CHANGELOG
label been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocs
label has been added if this introduces a change that needs to be updated in the user docs?requirements.txt
files also included in this PRStudio-specifc:
notranslate
class been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages
,components
, andlayouts
directories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarn
andpip
)