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

Amsterdam helpers #93701

Merged
merged 5 commits into from
Mar 10, 2021
Merged

Amsterdam helpers #93701

merged 5 commits into from
Mar 10, 2021

Conversation

ryankeairns
Copy link
Contributor

@ryankeairns ryankeairns commented Mar 4, 2021

Summary

Ah, Amsterdam. So close, yet so far away... Perhaps this mixin will help us get there!

(This is a joke about the distance to the city, from where I live, and lack of COVID travel. They say if you have to explain a joke, then it's probably not funny to begin with. You be the judge. I suspect they are right)

Credit to Andrea and her original PR for this solution. I've merely split off the mixin, so that we can make it available for folks to start on cleanup work. This also buys us more time to clean up the remaining query bar stuff.

@ryankeairns ryankeairns requested a review from cchaos March 4, 2021 22:26
@ryankeairns ryankeairns requested a review from a team as a code owner March 4, 2021 22:26
@ryankeairns ryankeairns added release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0 labels Mar 4, 2021
@ryankeairns
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

LGTM! I tried all the combinations and they worked as expected. I got errors where expected as well. I'm not sure if the dark vs light differences are necessary since we still have lightOrDarkTheme() for that. But I suppose it doesn't hurt and the second param is optional.

I also checked that this works in both the @imported Sass files and those imported directly by JS.

The only thing that could be confusing to devs is if they forget about the KBN_OPTIMIZER_THEMES setting. When I flip the switch in advanced settings to K8 but I'm only building with v7, I'm still seeing the v7 compiled styles. But hopefully the 48 console errors will help them realize 😏 .

src/core/public/core_app/styles/_mixins.scss Outdated Show resolved Hide resolved
@cchaos
Copy link
Contributor

cchaos commented Mar 9, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ryankeairns ryankeairns merged commit 804c862 into elastic:master Mar 10, 2021
ryankeairns added a commit to ryankeairns/kibana that referenced this pull request Mar 10, 2021
* Adds kbnThemeStyle mixin

* Update src/core/public/core_app/styles/_mixins.scss

Co-authored-by: Caroline Horn <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Caroline Horn <[email protected]>
ryankeairns added a commit that referenced this pull request Mar 10, 2021
* Adds kbnThemeStyle mixin

* Update src/core/public/core_app/styles/_mixins.scss

Co-authored-by: Caroline Horn <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Caroline Horn <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Caroline Horn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants