Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(widgets): turn on viewEncapsulation.None #2784

Closed
wants to merge 1 commit into from

Conversation

fbasso
Copy link
Member

@fbasso fbasso commented Oct 11, 2018

The purpose of this PR is to allow a better widgets customization with css.

Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

I'm for this change overall:

  • need to check what could be impacted a bit more
  • +1 for removing /deep/

Noted just one thing that is broken in demo app

@@ -1,4 +1,4 @@
:host>select {
ngb-datepicker-navigation-select > select {
Copy link
Member

Choose a reason for hiding this comment

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

this should be more specific without encapsulation, ex:

ngb-datepicker-navigation-select > .custom-select

:host {
&.bs-tooltip-top .arrow,
&.bs-tooltip-bottom .arrow {
.bs-tooltip {
Copy link
Member

Choose a reason for hiding this comment

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

I guess it should be specific to ngb-popover-window, not to any .bs-tooltip

:host {
&.bs-popover-top .arrow,
&.bs-popover-bottom .arrow {
.bs-popover {
Copy link
Member

Choose a reason for hiding this comment

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

I guess it should be specific to ngb-popover-window, not to any .bs-popover

@fbasso
Copy link
Member Author

fbasso commented Oct 12, 2018

Thanks for the review ! The changes have been done.

@benouat
Copy link
Member

benouat commented Oct 15, 2018

@fbasso I know it's really some extreme nitpicking here, but we should rewrite the commit message whenever merging this PR to

turning off ViewEncapsulation
or
deactivating ViewEncapsulation

It sounds clearer to me from a git history purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants