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

fix(axis): style overrides not applied to axis dimensions #829

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

nickofthyme
Copy link
Collaborator

Summary

After improvements from #711, the axis theme was allowed to be overridden per axis. These changes failed to account for these overrides in the computeAxisTicksDimensionsSelector and just used the Theme.axis styles.

This PR adds the overrides to the axis dimensions calculations.

Before

Image 2020-09-18 at 11 20 41 AM

After

Screen Recording 2020-09-18 at 01 53 PM

Checklist

  • Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • Proper documentation or storybook story was added for features that require explanation or tutorials

@nickofthyme nickofthyme added bug Something isn't working :axis Axis related issue labels Sep 18, 2020
Copy link
Member

@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.

LGTM

@nickofthyme nickofthyme merged commit 62172c4 into elastic:master Sep 21, 2020
@nickofthyme nickofthyme deleted the fix/axis-label-rotation branch September 21, 2020 13:20
markov00 pushed a commit that referenced this pull request Sep 21, 2020
## [21.3.2](v21.3.1...v21.3.2) (2020-09-21)

### Bug Fixes

* **axis:** style overrides not applied to axis dimensions ([#829](#829)) ([62172c4](62172c4))
@markov00
Copy link
Member

🎉 This PR is included in version 21.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Sep 21, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
## [21.3.2](elastic/elastic-charts@v21.3.1...v21.3.2) (2020-09-21)

### Bug Fixes

* **axis:** style overrides not applied to axis dimensions ([#829](elastic/elastic-charts#829)) ([f57e39b](elastic/elastic-charts@f57e39b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:axis Axis related issue bug Something isn't working released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants