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

menu: improve menu generation management #335

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Conversation

zannkukai
Copy link
Contributor

Improves the menu generation management. Adding some specifications on
menu entries :

  • allowing to set disabled state on any menu entry.
  • allowing to separate entries with a divider.
  • removing some css indentation from the menu component.
    Removes the 'PrefixSuffixComponent' and replaces it with a simple
    template.

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

How to test?

  • use the ng-core-tester to test the menu component : npm run serve

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@zannkukai zannkukai self-assigned this Dec 17, 2020
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message proposition:

menu: improve menu generation management

Improves the menu generation management by adding some specifications on
menu entries:
  * Allows to set disabled state on any menu entry.
  * Allows to separate entries with a divider.
  * Removes some CSS indentation from the menu component.
Removes the 'PrefixSuffixComponent' and replaces it with a simple
template.

<li class="nav-item dropdown" dropdown placement="bottom right">
<a class="nav-link dropdown-toggle"
dropdownToggle
[routerLink]=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Why empty routerLink ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this, the "a" tag isn't recognize as a valid link by browser and the cursor stay as pointer (not the little hand).

Copy link
Contributor

Choose a reason for hiding this comment

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

and with href="#" ?

Choose a reason for hiding this comment

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

I think simply adding href alone works.

Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message approved.

@iGormilhit iGormilhit added this to the v1.0.0 milestone Jan 13, 2021
@zannkukai zannkukai requested a review from sebdeleze January 15, 2021 13:03
<li class="nav-item dropdown" dropdown placement="bottom right">
<a class="nav-link dropdown-toggle"
dropdownToggle
[routerLink]=""

Choose a reason for hiding this comment

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

I think simply adding href alone works.

Improves the menu generation management by adding some specifications on
menu entries:
  * Allows to set disabled state on any menu entry.
  * Allows to separate entries with a divider.
  * Removes some CSS indentation from the menu component.
Removes the 'PrefixSuffixComponent' and replaces it with a simple
template.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai merged commit 65432bc into rero:dev Jan 18, 2021
@zannkukai zannkukai deleted the zan-fix-menu branch January 18, 2021 08:55
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.

4 participants