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

How to change CSS ? #198

Open
shehan96 opened this issue Nov 18, 2021 · 1 comment
Open

How to change CSS ? #198

shehan96 opened this issue Nov 18, 2021 · 1 comment

Comments

@shehan96
Copy link

I want to change CSS to some other values.

For example :

  • I want to change background colour when hover the dropdown item

I tried following code, but didn't work.

.mention-item > a { background-color: violet !important; }

Any suggestions or proper way to do that?

@gitannaclaudia
Copy link

I'm using SCSS and was able to edit using :Host

Sample:

:Host {
  ::ng-deep mention-list {
    .scrollable-menu {
      max-height: 160px !important;
    }
    .mention-menu > li {
      cursor: pointer;
      &:hover {
        background-color: #f4f4f4;
      }
    }
    .mention-active > a {
        background-color: var(--primary-color) !important;
      &::after {
        .dropdown-item a:hover:after {
          background-color: var(--primary-color) !important;
        }
      }
    }
  }

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

No branches or pull requests

2 participants