Skip to content

Theming: Double stylesheet file in node package #1541

Closed

Description

@NCC1701M

Bug

What is the expected behavior?

Building a custom theme with sass, gulp and gulp-sass

What is the current behavior?

When I try to build an own theme with sass I get a transpilation error because in material/core/overlay are both files overlay.css and overlay.scss and so sass doesn't know which it should pick.

image

image

What are the steps to reproduce?

Follow the steps at [https://github.com/angular/material2/blob/master/docs/theming.md#defining-a-custom-theme](your theming guide)

Run a gulp task to compile the scss files to css. Use at least the following devDependencies

{
   // ...
   "gulp": "^3.9.1",
   "gulp-sass": "^2.3.2",
   "sass": "^0.5.0",
   // ...
}

Which versions of Angular, Material, OS, browsers are affected?

Angular: 2.1.0
Material: 2.0.0-alpha.9 cobalt-kraken
OS: Microsoft Windows [Version 6.3.9600] and [Version 6.1.7601]
other versions see in above

Activity

  1. jelbourn commented on Oct 20, 2016

    @jelbourn
    Contributor

    Yeah, overlay.scss should be a partial (_overlay.scss).

  2. added
    help wanted
    P2
    on Oct 20, 2016
  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions