Skip to content

Share methods to set the theme color classes #2394

Closed

Description

@devversion

We need to find a way to share the methods, which apply the theme color classes on the components.

Right now we are repeating the same methods for each component.

  • Also we should have a type for the color values like primary | accent | warn

Activity

  1. self-assigned this
    on Dec 24, 2016
  2. added
    refactoring
    on Dec 24, 2016
  3. david-kerwick commented on Jan 13, 2017

    @david-kerwick

    Would it be possible to expose this globally so we could use it in any component?
    I'm following https://github.com/angular/material2/blob/master/guides/theming-your-components.md at the moment, but it means I need to stick the imports on top of all the components. Having access to a global primary | accent | warn would be great

  4. devversion commented on Jan 30, 2017

    @devversion
    MemberAuthor

    Would be weird to have a shared code for the theme classes- because we would need our renderer from the DI in that utility. Let's revisit this later.

  5. added a commit that references this issue on Feb 10, 2017
    fb3af01
  6. added a commit that references this issue on Mar 20, 2017
    705519d
  7. 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.

  8. 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

Labels

refactoring

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions