Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(colors): mdTheme integration #8507

Closed
wants to merge 1 commit into from

Conversation

EladBezalel
Copy link
Member

  • If md-theme directive is somewhere up the DOM tree we inject the theme before each color value

    example

<div md-theme="myTheme">
  <div md-colors="{background: 'primary-600'}">
    <span md-colors="{background: 'mySecondTheme-accent-200'}">Color demo</span>
  </div>
</div>

'primary-600' will be 'myTheme-primary-600',
but 'mySecondTheme-accent-200' will stay the same cause it has a theme prefix

fixes #8407

- If `md-theme` directive is somewhere up the DOM tree we inject the theme before each color value

 ### example
```html
<div md-theme="myTheme">
  <div md-colors="{background: 'primary-600'}">
    <span md-colors="{background: 'mySecondTheme-accent-200'}">Color demo</span>
  </div>
</div>
```
 `'primary-600'` will be `'myTheme-primary-600'`,
but `'mySecondTheme-accent-200'` will stay the same cause it has a theme prefix

fixes #8407
@EladBezalel EladBezalel added the needs: review This PR is waiting on review from the team label May 19, 2016
@ThomasBurleson
Copy link
Contributor

@ErinCoughlan, @KarenParker - care to review this cool enhancement to md-Colors?

@KarenParker
Copy link
Contributor

@gmoothart

@ErinCoughlan
Copy link
Contributor

LGTM! This is going to be critical. Thanks.

@gmoothart
Copy link
Contributor

👍

1 similar comment
@KarenParker
Copy link
Contributor

👍

@EladBezalel EladBezalel deleted the feat/colors-mdTheme-integration branch May 20, 2016 11:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-colors default theme
5 participants