Skip to content

fix: background color dark mode issue#719

Merged
nickofthyme merged 8 commits intoelastic:masterfrom
nickofthyme:fix/bg-color-issue
Jun 29, 2020
Merged

fix: background color dark mode issue#719
nickofthyme merged 8 commits intoelastic:masterfrom
nickofthyme:fix/bg-color-issue

Conversation

@nickofthyme
Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme commented Jun 24, 2020

Summary

Set default background color to transparent.

Currently, most charts in kibana do not handle getting the proper base theme for the chart and use the transparent as a default. The color can be set on the corresponding theme once the theme is commonly shared across all charts in kibana.

Changes

  • revert existing logic for no background color
  • fix divide-by-zero error with combineColors function
  • fix text text leading line on partition charts
  • add warning for invalid or transparent colors
  • add warning for alpha values less than 1
  • fix tooltip color width and groove colors

@nickofthyme nickofthyme requested a review from markov00 June 24, 2020 15:39
- revert existing logic for no background color
- fix divide-by-zero error with combineColors function
- fix text text leading line on partition charts
- add warning for invalid or transparent colors
- add warning for alpha values less than 1
- add themes with bgColor to partition charts
- add dark theme story
- update all screenshots
@nickofthyme
Copy link
Copy Markdown
Collaborator Author

retest this please

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 25, 2020

Codecov Report

Merging #719 into master will decrease coverage by 0.26%.
The diff coverage is 69.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
- Coverage   74.80%   74.53%   -0.27%     
==========================================
  Files         265      282      +17     
  Lines        8541     8896     +355     
  Branches     1714     1763      +49     
==========================================
+ Hits         6389     6631     +242     
- Misses       2099     2209     +110     
- Partials       53       56       +3     
Impacted Files Coverage Δ
src/chart_types/goal_chart/state/chart_state.tsx 59.18% <0.00%> (ø)
...es/partition_chart/layout/types/viewmodel_types.ts 83.33% <ø> (ø)
...artition_chart/renderer/canvas/canvas_renderers.ts 6.34% <0.00%> (ø)
.../chart_types/partition_chart/state/chart_state.tsx 74.50% <0.00%> (ø)
src/components/portal/utils.ts 21.42% <0.00%> (-78.58%) ⬇️
src/specs/constants.ts 100.00% <ø> (ø)
src/state/chart_state.ts 87.09% <ø> (ø)
src/utils/commons.ts 92.91% <0.00%> (-3.03%) ⬇️
src/utils/themes/dark_theme.ts 100.00% <ø> (ø)
src/utils/themes/light_theme.ts 100.00% <ø> (ø)
... and 46 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88123f5...fa5356e. Read the comment docs.

Copy link
Copy Markdown
Collaborator

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested locally

@nickofthyme nickofthyme merged commit 40bb526 into elastic:master Jun 29, 2020
@nickofthyme nickofthyme deleted the fix/bg-color-issue branch June 29, 2020 13:20
markov00 pushed a commit that referenced this pull request Jun 29, 2020
## [19.6.1](v19.6.0...v19.6.1) (2020-06-29)

### Bug Fixes

* background color dark mode issue ([#719](#719)) ([40bb526](40bb526))
@markov00
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 19.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jun 29, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants