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

Selector :global is not pure SCSS #63

Open
LudoKt opened this issue Jul 24, 2024 · 0 comments
Open

Selector :global is not pure SCSS #63

LudoKt opened this issue Jul 24, 2024 · 0 comments

Comments

@LudoKt
Copy link

LudoKt commented Jul 24, 2024

Hello,

I am encountering an issue when trying to use your code from the README. Here's the code I am using:

import {
  AlignmentViewer,
  FastaAlignment
} from "alignment-viewer-2";

const fastaFileText = ">target\n" +
  "ATGCATGC\n" +
  ">seq1\n" +
  "AAAACCCC\n" +
  ">seq2\n" +
  "ATGCATTT\n" +
  ">seq3\n" +
  "ATGCAAAA\n";
const alignmentObj = FastaAlignment.fromFileContents(
  "ALIGNMENT_NAME", fastaFileText
);

However, I am encountering the following error:

⨯ ./node_modules/alignment-viewer-2/dist/js/common/MolecularStyles.module.scss:648:4
Syntax error: Selector ":global .alignment-aa .resi_line [class^=resi_]" is not pure (pure selectors must contain at least one local class or id)
  646 |     // (i.e., dashes, dots, unrecognized letters, lowercase letters)
  647 |     $defaultColor: map-get($styleObj, defaultLetterColor);
> 648 |     :global
      |    ^
  649 |       .#{$alignmentClass}
  650 |       .#{$residueParentClass}
GET / 500 in 2489ms

Can you help me resolve this issue?

Thank you!

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

1 participant