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

fix(theming): fix CSS with nested rules parsing when registering a theme #9872

Closed
wants to merge 1 commit into from

Conversation

natete
Copy link
Contributor

@natete natete commented Oct 20, 2016

Replace the regex used to split the CSS string with a function that takes into account nested rules.

Fixes #9869

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@natete
Copy link
Contributor Author

natete commented Oct 20, 2016

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@ThomasBurleson ThomasBurleson added this to the 1.1.3 milestone Oct 20, 2016
@ThomasBurleson ThomasBurleson added P5: nice to have These issues will not be fixed without community contributions. in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Oct 20, 2016
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't looked into the functionality, but I left a few minor notes on the code formatting.

@crisbeto
Copy link
Member

LGTM from me regarding the coding style changes.

@ThomasBurleson
Copy link
Contributor

@natete - please squash your commits. Thank you.

Copy link
Contributor

@clshortfuse clshortfuse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just like to see some minor syntax changes as I noted in the review. Other than that, LGTM!

Thanks a lot @natete for not only finding this issue, but providing a fix!

@clshortfuse clshortfuse added P0: critical Critical issues that must be addressed immediately. and removed P5: nice to have These issues will not be fixed without community contributions. labels Oct 24, 2016
Replace the regex used to split the CSS string with a function that takes into account nested rules.

Fixes angular#9869
@ThomasBurleson ThomasBurleson added needs: presubmit and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Oct 25, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.3, 1.1.2 Oct 25, 2016
@natete
Copy link
Contributor Author

natete commented Oct 25, 2016

Thank you for helping me, I've learned a lot :)
And thank you for your work! 😃

@ThomasBurleson
Copy link
Contributor

ThomasBurleson commented Oct 25, 2016

@clshortfuse - #ftw!
@natete - thank you for your PR. If you would like to work on more issues and features. Let us know. ;-)

@natete
Copy link
Contributor Author

natete commented Oct 25, 2016

@ThomasBurleson - for sure, I'd love to help whenever you need 👍

@Splaktar Splaktar modified the milestones: 1.1.12, 1.1.13 Jan 3, 2019
@Splaktar
Copy link
Contributor

@natete I just wanted to check with you to see if you still have any interest in this PR. The issue does still appear to be a problem, but in order to get this in, we would need to work together with the caretakers to identify and eliminate any changes that could be breaking. If you don't have time or interest in working on this more, please let me know and I will open a new PR to continue the work. Thank you very much for your contribution and I'm sorry that it has gotten stuck like this for so long.

@natete
Copy link
Contributor Author

natete commented Jan 22, 2019

Hi, I haven't use AngularJS for the last two years. Anyway, let me know how can I help you and I'll try my best.

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Jan 22, 2019
@Splaktar Splaktar modified the milestones: 1.1.13, 1.1.14 Feb 10, 2019
@Splaktar Splaktar modified the milestones: 1.1.14, 1.1.15 Mar 14, 2019
@Splaktar Splaktar modified the milestones: 1.1.15, 1.1.16, 1.1.18, 1.1.19 Mar 29, 2019
@Splaktar Splaktar modified the milestones: 1.1.19, 1.1.21 May 30, 2019
@Splaktar Splaktar modified the milestones: 1.1.21, 1.1.22 Aug 15, 2019
@Splaktar Splaktar modified the milestones: 1.1.22, 1.1.23 Oct 22, 2019
@Splaktar Splaktar modified the milestones: 1.1.23, 1.2.0 May 21, 2020
@Splaktar Splaktar modified the milestones: 1.2.0, - Backlog Jul 28, 2020
@Splaktar Splaktar removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs - Breaking Change labels Dec 6, 2020
@Splaktar Splaktar removed this from the - Backlog milestone Dec 6, 2020
Copy link
Contributor

@Splaktar Splaktar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good. Thank you for this hard work and for your patience.

I've rebased this and will try to get it merged in PR #12049.

@natete
Copy link
Contributor Author

natete commented Dec 7, 2020

@googlebot I consent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ needs: manual testing This issue or PR needs to have some manual testing and verification done needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved P2: required Issues that must be fixed. type: bug ui: CSS ui: theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

theming: parsing a registered style with Media Queries or keyframes produces incorrect rules
9 participants