-
Notifications
You must be signed in to change notification settings - Fork 81
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
KDropdown and KIconButton tweaks #465
base: develop
Are you sure you want to change the base?
Conversation
17f7d82
to
50a07f3
Compare
Please note that |
Alright |
50a07f3
to
83c9f97
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.
Additions look correct to me. Thanks @nucleogenesis!
c3c445d
to
1f49763
Compare
@nucleogenesis although I can follow the code changes, I'm a little bit unclear on what exactly you added in the create quiz PR that required this change? Can you explain a little bit? I have it running and also am looking at the code but just wanted to be sure I understand the use case. (Relatedly, adding a sentence or two to the documentation to the same effect would be helpful) |
This allows us to pass whatever we want in as the children of the KDropdownMenu
Rather than defaulting to true, give the user the option here
1f49763
to
3f95cd9
Compare
Hey @marcellamaki I've updated the changelog & docs page to better explain the changes to KDropdownMenu and to offer guidance re: the changes -- thank you for the feedback there I hadn't considered how this would be good to note in the docs 🤦🏻♂️ |
I'm sorry for being a pain in the butt, but the changelog still needs cleanup, @nucleogenesis. There's still a conflict caused by introducing the new changelog format while this branch was probably in progress already. Could you please remove lines 272-291, and line 294 completely? That's the old format that has already been converted to new items. Let me know if you needed anything. Your guidance in the new changelog item for this PR looks great, thank you. |
@@ -7,6 +7,17 @@ Changelog is rather internal in nature. See release notes for the public overvie | |||
|
|||
## Version 2.0.0 | |||
|
|||
- [#465] | |||
- **Description:** KDropdownMenu improvements & bind $attrs in KIconButton | |||
- **Products impact:** - |
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.
I think this change would fall into "updated API" products impact category since there are some updates to public facing API for components like a new slot and attributes binding
CHANGELOG.md
Outdated
- **Components:** KDropdownMenu, KIconButton | ||
- **Breaking:** no | ||
- **Impacts a11y:** yes | ||
- **Guidance:** The KIconButton simply allows you to ensure that attrs you bind to it will be applied to the resulting button itself (ie, tabindex). KDropdownMenu now emits the @tab event when the [Tab] key is pressed and @close when the popover is programmatically closed. This allows more precise focus management as the popover by default could end up sending focus to the root HTML element. Furthermore, KDropdownMenu now exposes a #option slot. This slot exposes the current option so a template snippet can be passed here to customize the display of items in the menu. This could also be used to show a list of checkboxed items. |
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.
👍 🙏
Just a note that I will be splitting this PR into two separate PRs -- one which is necessary specifically for Kolibri work and the other which represents unused changes that were inspired during Kolibri work but went unused. I'll update both changelogs accordingly next week and request re-review from the participants here. |
f19ca3f
to
f05e9a7
Compare
d42546f
to
c016d7d
Compare
@marcellamaki @MisRob I've extracted the commits from this PR for the quiz management work into #497 so that these changes appear separately from the others in the changelog. |
@nucleogenesis I am not sure if I could understand the motivation for two pull requests properly. Do you need anything in this one? |
If it's still active and has no breaking updates, please retarget to |
Description
containFocus
prop through KDropdownButton toUiPopover
v-bind="$attrs"
to KIconButtonIssue addressed
This was necessary to accommodate needs for the updates to Kolibri Quiz.
Before/after screenshots
n/a
Steps to test
I suggest testing my Kolibri PR which puts these changes to use.
Testing checklist
changelog
Reviewer guidance