Skip to content

Almost solved: remove NEW label first menu item #1820

Open
@Prefix1802

Description

@Prefix1802

Hi,

How do i remove the new label on my first menu item?

It stays there even if i create my own custom menu.

afbeelding

Edit:
src/app/@theme/layouts/sample/sample.layout.scss

I changed

/deep/ nb-menu {
  & > .menu-items {
    & > .menu-item:first-child {
      .menu-title {
        &::after {
          content: 'new';
          color: nb-theme(color-white);
          margin-left: 1rem;
          background: nb-theme(color-danger);
          padding: 0 0.5rem;
          border-radius: nb-theme(radius);
          font-size: nb-theme(font-size-sm);
        }
      }
    }
  }

to

/deep/ nb-menu {
& > .menu-items {
/& > .menu-item:first-child {
.menu-title {
&::after {
content: 'new';
color: nb-theme(color-white);
margin-left: 1rem;
background: nb-theme(color-danger);
padding: 0 0.5rem;
border-radius: nb-theme(radius);
font-size: nb-theme(font-size-sm);
}
}
}
/
}

Is this a correct solution?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions