Problem/Motivation
https://getbootstrap.com/docs/5.3/components/dropdowns/#menu-alignment is not implemented in the dropdown component. It can be useful for dropdowns in mobile.
Need to check if other dropdown features are missing.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ui_suite_bootstrap-dropdown_menu_alignment-3426475-5.patch | 4.27 KB | grimreaper |
Issue fork ui_suite_bootstrap-3426475
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
grimreaperComment #3
grimreaperCurrently by having a content prop of type links, this prevent features like https://getbootstrap.com/docs/5.3/components/dropdowns/#forms
I guess in some navigation menu / header, with custom code to generate such dropdowns, this can be useful to be able to support that. For login, search forms.
Comment #5
grimreaperUploading patch for Composer usage.
Comment #6
grimreaper@pdureau, can you please give a look at the MR and also about comment 3?
Comment #7
pdureau commentedI would prefer to keep a convenient data structure with the links prop type, at the cost of not implementing every fetaure of this component.
Comment #8
pdureau commented{% set dropdown_menu_attributes = dropdown_menu_start ? dropdown_menu_attributes.addClass(dropdown_menu_start) : dropdown_menu_attributes %}Why do we need to test
dropdown_menu_start? What would be the result of{% set dropdown_menu_attributes = dropdown_menu_attributes.addClass(dropdown_menu_start) %}if dropdown_menu_start is empty or not defined?Comment #9
grimreaperReady to merge.
Ok for you @pdureau?
Comment #10
grimreaperComment #11
pdureau commentedNot tested but reviewed
Comment #12
pdureau commentedComment #14
grimreaper