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

fix(theming): match preceding selectors as well #9484

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

devversion
Copy link
Member

@devversion devversion commented Sep 1, 2016

  • The theming service currently only matches from the beginning of the md-default-theme, but all preceding selectors without whitespaces are being ignored.
  • The regex is doing more than it actually needs. Having an extra group for the target is unnecessary (Since we only want to concatenate the start and the end without the .md-default-theme class).
  • Kristiyan also helped with this effort and we figured out, that NanoCSS accidentally removes the theme color expressions from the border CSS property.

Shout-out again to @crisbeto

Fixes #9480

@devversion devversion added the needs: review This PR is waiting on review from the team label Sep 1, 2016
@devversion devversion added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Sep 1, 2016
@devversion devversion force-pushed the fix/theming-rule-match branch from 991648f to db0c563 Compare September 1, 2016 19:05
@devversion devversion removed the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Sep 1, 2016
@devversion devversion added this to the 1.1.2 milestone Sep 1, 2016
* The theming service currently only matches from the beginning of the `md-default-theme`, but all preceding selectors are being ignored.

Fixes angular#9480
@devversion devversion force-pushed the fix/theming-rule-match branch from db0c563 to a3c808e Compare September 1, 2016 19:24
@crisbeto
Copy link
Member

crisbeto commented Sep 1, 2016

I've been testing it out together with Paul and it LGTM.

@devversion
Copy link
Member Author

devversion commented Sep 6, 2016

Ping @EladBezalel for review. This was our discussion in the meeting and was planned to go into 1.1.2 instead.

@EladBezalel
Copy link
Member

As long it was tested by @crisbeto and @devversion locally - LGTM

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Sep 7, 2016
@kara kara added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit labels Sep 8, 2016
@kara kara merged commit efb7031 into angular:master Sep 8, 2016
@devversion devversion deleted the fix/theming-rule-match branch September 8, 2016 17:49
Frank3K pushed a commit to Frank3K/material that referenced this pull request Sep 11, 2016
* The theming service currently only matches from the beginning of the `md-default-theme`, but all preceding selectors are being ignored.

Fixes angular#9480
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants