Skip to content

Code sample spelling mistake in theming-your-components "constrast" #15075

Closed

Description

@seam345

What is the expected behavior?

For the spelling of contrast to be correct.

border-color: mat-color($primary, '100-contrast');

What is the current behavior?

Currently it is

border-color: mat-color($primary, '100-constrast');

Giving me an error when used
ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):

$opacity: if($opacity == null, opacity($color), $opacity);
^
Argument $color of opacity($color) must be a color
in /node_modules/@angular/material/_theming.scss (line 1293, column 34)

What are the steps to reproduce?

last code block and last line on this page

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

7.3.0

Is there anything else we should know?

This is my first summit issue apologises if I should have done anything differently

Activity

  1. added a commit that references this issue on Feb 5, 2019
    1183c66
  2. added 2 commits that reference this issue on Feb 5, 2019
    81f6e20
    1099c79
  3. angular-automatic-lock-bot commented on Sep 10, 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 10, 2019
  5. added a commit that references this issue on Nov 5, 2026
    9429f35
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions