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

when use with /deep/, some styles are missing #75

Open
niexia opened this issue Jan 26, 2021 · 1 comment
Open

when use with /deep/, some styles are missing #75

niexia opened this issue Jan 26, 2021 · 1 comment

Comments

@niexia
Copy link

niexia commented Jan 26, 2021

<style lang="scss" scoped>
p,
h2,
h3 {
  margin: 0;
  padding: 0;
}
/deep/ .form-dialog {
  width: 720px;
  box-shadow: 2px 2px 16px rgba(166, 168, 170, 0.46);
  border-radius: 8px;
  .vi-dialog__header {
    position: relative;
    background-color: #0a1e39;
    background-image: url("~src/assets/images/new-task/form-dialog-header-bg.png");
    background-size: 100%;
    border-radius: 8px 8px 0 0;
    padding: 32px 0 24px;
  }
 ...

After building, we found that the style of class “vi-dialog__header” was not existing.

@fabercancio
Copy link

vi-dialog__header is a SCSS nested subclass and postcss-rtl expects regular CSS code. I think that you are trying to run postcss-rtl before postcss-sass. Could you paste your config?

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