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

Refactoring Mobile user menu #9308

Closed
wants to merge 13 commits into from
Closed

Conversation

Ruud68
Copy link
Contributor

@Ruud68 Ruud68 commented Oct 16, 2022

Pull Request for Issue #9306 #9299 replacement for #9300 .

Summary of Changes

The way the Kunena menu is implemented is not conform BS5 best practises: the menu has two parts a collapse part with the menu items in it, and the part where the login / logout button is displayed.

It turns out that when the menu is collapsed, not only the collapsed menu is in the collapse, but also the login / logout buttons, these are also still shown on the main (non-collapsed) menu bar.

I have been trying to fix that but this was not possible. I have now refactored the menu to a offcanvas menu.
it turns out that the offcanvas part is more strict: it doesn't display the login / logout buttons: this is exactly what we want.
An IMO it also looks better :)

this PR also contans the fix that login in on the mobile menu (dropdown) wasn't possible (the username field was set as email instead of text input).

Testing Instructions

on device type mobile, tablet, desktop test if login / login toggles the dropdown and if login / logout via dropdown works.
on mobile and tablet test if offcanvas menu shows / hides, test if all menu items also work.
test if dropdown for login / logout are always in the viewport (and not partially offscreen)

cc @rich20

@xillibit
Copy link
Member

I had rebased the branch K6.0 to rename some commits, becaus the commit message should start whith [K6.0] if it's on K6.0 branch.

Is-it possible that you restart by pulling K6.0 and delete the existing K6.0 ?

@Ruud68
Copy link
Contributor Author

Ruud68 commented Oct 16, 2022

@xillibit done, I hope... #9310

@xillibit xillibit closed this Oct 16, 2022
@Ruud68 Ruud68 deleted the mobile-user-menu branch October 17, 2022 07:14
@@ -12,26 +12,29 @@

defined('_JEXEC') or die();

use Kunena\Forum\Libraries\Icons\KunenaIcons;
use Joomla\CMS\Language\Text;

?>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!
I do not know what I'm doing wrong ;)
If I change that, I'll lose my registration. Everything is moved to left side.
Screenshot_157
Screenshot_158

@rich20
Copy link
Member

rich20 commented Oct 18, 2022

Many more files have been changed. I have replied to you in the forum. https://www.kunena.org/forum/36-German/166363-anmeldung-und-darstellungsprobleme-aurelia-vorlage-kunena-6-0-2#226026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants