Skip to content

Adding support for CSS variable shimming #2567

Closed as not planned
Closed as not planned

Description

@rkirov

Polymer 1.0 has that support and is advocating using CSS variables to pierce shadow dom boundaries instead of the /deep/ combinator. https://www.polymer-project.org/1.0/docs/devguide/styling.html

Activity

  1. TedSander commented on Jun 16, 2015

    @TedSander
    Contributor

    Also CSS mixins would be appreciated.

    Spec for CSS variables here:
    https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables

  2. matanlurey commented on Jun 21, 2015

    @matanlurey
    Contributor

    Could Angular also expose a Shim injectable for code that manually manipulates CSS classes?

    e.g.

    class NgStyleLikeDirective {
      constructor(CssShim cssShim) {
        cssShim('fancy-test') // Becomes fancy-test[_ng_content_628]
      }
    }
  3. vicb commented on Jun 22, 2015

    @vicb
    Contributor

    I think @matsko has plan to use CSS variables for animations. Not sure if he plan to use the code from Polymer ?

    @matanlurey could you please create a separate issue for the shim things with a more detailed explanation about your use case ?

  4. tbosch commented on Jun 22, 2015

    @tbosch
    Contributor

    This sounds reasonable. Note that we will probably still be able to do this already during compilation, as we will attach components already during compilation (#2529)

  5. 3 remaining items

  6. added this to the Backlog milestone on Jan 23, 2018
  7. angular-robot commented on May 21, 2021

    @angular-robot
    Contributor

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  8. added
    feature: under considerationFeature request for which voting has completed and the request is now under consideration
    on Jun 4, 2021
  9. jelbourn commented on Jun 16, 2022

    @jelbourn
    Contributor

    CSS Custom Properties are now supported in all browsers that Angular supports, so this is no longer necessary.

  10. angular-automatic-lock-bot commented on Jul 17, 2022

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

  11. locked and limited conversation to collaborators on Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions