Suggestion: remove p:separator from sidebar menu

Post Reply
Posts: 98
Joined: 03 Sep 2014, 11:41
Location: NL / BE

01 Aug 2022, 14:05

Without it you can use the rendered attribute of submenus to toggle them based on permissions, without having to do the same for a separator.

Visually the line can be added using CSS:

Code: Select all

.layout-menu > li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
PrimeFaces Developer | PrimeFaces Extensions Developer

Posts: 5155
Joined: 29 Jun 2013, 12:38

12 Aug 2022, 20:31

Yes, I totally agree with you but as you know this is just an option. So it can stay for now. Thanks a lot for the feedback!

Best Regards,

Post Reply

Return to “Diamond - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests