Skip to content
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

Override constrainToScroll prop default value to false #586

Merged
merged 32 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5d0e433
Override constrainToScroll prop default value to false
kafukoM Mar 21, 2024
f1b8ee0
Updated default constrainToScrollParent prop value
kafukoM Mar 22, 2024
837d6e2
Reverted yarn.lock changes
kafukoM Mar 22, 2024
44409f6
Modified changelog.md
kafukoM Mar 22, 2024
ec8cf3b
Revert "Modified changelog.md"
kafukoM Mar 22, 2024
996d695
Updated CHANGELOG.md
kafukoM Mar 22, 2024
b577fa8
Move dimension styles to the container
MisRob Jul 26, 2023
f9fcaf0
Add scaling and ratio logic
MisRob Jul 26, 2023
8ea6972
Document default slot
MisRob Nov 22, 2023
e358e4b
Add slots and placeholder logic
MisRob Nov 22, 2023
3d3107a
Add border radius
MisRob Jan 12, 2024
1b51e44
Cleanup documentation and tests
MisRob Jan 31, 2024
86a55a3
Trying with hidden overflow flex wrapper
AlexVelezLl Feb 20, 2024
3f55c9e
Overflow items with visibility hidden items
AlexVelezLl Feb 20, 2024
98018f4
Ensuring all visible items if moreButton were not rendered
AlexVelezLl Feb 20, 2024
bcf6fa2
Polishing example
AlexVelezLl Feb 20, 2024
ce80b6a
Add docs page
AlexVelezLl Feb 21, 2024
4b20918
Add divider support
AlexVelezLl Feb 21, 2024
add2f37
Add appearance overrides
AlexVelezLl Feb 21, 2024
5f9fd92
Add useKResponsiveElement
AlexVelezLl Feb 27, 2024
4ad6e9d
Watch responsive elementWidth in KListWithOverflow
AlexVelezLl Feb 27, 2024
4c0850d
Update docs
AlexVelezLl Feb 27, 2024
e3cfdb3
Add component documentation
AlexVelezLl Feb 27, 2024
691b74a
Add changelog
AlexVelezLl Feb 27, 2024
f3690dd
Lint files
AlexVelezLl Feb 27, 2024
e24ea56
Rename composable to private
AlexVelezLl Feb 27, 2024
5f25479
Set list as overflow hidden
AlexVelezLl Feb 27, 2024
b4d4ea2
Replace ResizeSensor
AlexVelezLl Feb 28, 2024
f8b5ef8
Requested changes
AlexVelezLl Feb 29, 2024
76c72de
Increase version
MisRob Mar 5, 2024
8dbb67b
Resolved CHANGELOG.md conflicts
kafukoM Mar 22, 2024
883ab3d
Merge branch 'release-v3' into kdropdown-options-update
kafukoM Mar 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ Changelog is rather internal in nature. See release notes for the public overvie

## Version 3.x.x (`release-v3` branch)

- [#586]
- **Description:** Adds a new prop `constrainToScrollParent ` to `KDropdownMenu` to allow overriding of its popover flipping behavior.
- **Products impact:** Bugfix
- **Addresses:** [#432](https://github.com/learningequality/kolibri-design-system/issues/432)
- **Components:** KDropdownMenu
- **Breaking:** no
- **Impacts a11y:** no
- **Guidance:** Use the `constrainToScrollParent` prop to override the default popover flipping behavior of the `KDropdownMenu` component prop where necessary.

[#586]: https://github.com/learningequality/kolibri-design-system/pull/586

- [#552]
- **Description:** New `KListWithOverflow` component.
- **Products impact:** new API.
Expand Down Expand Up @@ -1177,4 +1188,4 @@ This was the first release of the Design System, with documentation written in a

## Version 0.1.0

The design system was originally based on a set of internal Kolibri components and their use as documented in the Kolibri Style Guide, which was first introduced into the Kolibri code base [in version 0.6](https://github.com/learningequality/kolibri/tree/release-v0.6.x/kolibri/plugins/style_guide). This remained until [version 0.13](https://github.com/learningequality/kolibri/tree/release-v0.13.x/kolibri/plugins/style_guide) after which the content was migrated to the [current site](https://design-system.learningequality.org/ 'Kolibri Design System Documentation').
The design system was originally based on a set of internal Kolibri components and their use as documented in the Kolibri Style Guide, which was first introduced into the Kolibri code base [in version 0.6](https://github.com/learningequality/kolibri/tree/release-v0.6.x/kolibri/plugins/style_guide). This remained until [version 0.13](https://github.com/learningequality/kolibri/tree/release-v0.13.x/kolibri/plugins/style_guide) after which the content was migrated to the [current site](https://design-system.learningequality.org/ 'Kolibri Design System Documentation').
8 changes: 8 additions & 0 deletions lib/KDropdownMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:z-index="99"
:containFocus="true"
:dropdownPosition="position"
:constrainToScrollParent="constrainToScrollParent"
@close="handleClose"
@open="handleOpen"
>
Expand Down Expand Up @@ -34,6 +35,13 @@
UiMenu,
},
props: {
/**
* The dropdown menu popover flips its position to avoid overflows within the parent. Setting it to false disables the flipping behavior.
*/
constrainToScrollParent: {
type: Boolean,
default: true,
},
/**
* An array of options objects, with one object per dropdown item
*/
Expand Down