Skip to content

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

Merged
nickofthyme merged 1 commit intoelastic:masterfrom
nickofthyme:fix/axis-label-rotation
Sep 21, 2020
Merged

fix(axis): style overrides not applied to axis dimensions#829
nickofthyme merged 1 commit intoelastic:masterfrom
nickofthyme:fix/axis-label-rotation

Conversation

@nickofthyme
Copy link
Copy Markdown
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
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.

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
Copy Markdown
Collaborator

🎉 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