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(metric): make value fit logic uniform across panels #2484

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

nickofthyme
Copy link
Collaborator

Summary

The fit option for the theme.metric.valueFontSize now determines the best fontSize across all panels uniformly. Previously, the fit option was applied to each individual panel.

New behavior

Zight Recording 2024-07-12 at 04 00 24 PM

Previous behavior

Zight Recording 2024-07-12 at 03 53 15 PM

Issues

fix #2483

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • All related issues have been linked (i.e. closes #123, fixes #123)
  • New public API exports have been added to packages/charts/src/index.ts
  • The proper documentation and/or storybook story has been added or updated

@nickofthyme nickofthyme added :styling Styling related issue :metric Related to Metric chart labels Jul 12, 2024
Copy link

@gvnmagni gvnmagni left a comment

Choose a reason for hiding this comment

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

Just tested the storybook and it works perfectly! Thank you @nickofthyme and apologies again for not foreseeing this originally

@nickofthyme nickofthyme merged commit 991347d into elastic:main Jul 15, 2024
14 checks passed
@nickofthyme nickofthyme deleted the metric-fit-value-uni-font branch July 15, 2024 14:27
nickofthyme pushed a commit that referenced this pull request Jul 15, 2024
# [66.1.0](v66.0.5...v66.1.0) (2024-07-15)

### Bug Fixes

* **deps:** update dependency @elastic/eui to ^95.3.0 ([#2479](#2479)) ([d8c8a6a](d8c8a6a))
* **deps:** update dependency @playwright/test to ^1.45.0 ([#2480](#2480)) ([6b9935c](6b9935c))
* **deps:** update dependency @playwright/test to ^1.45.1 ([#2485](#2485)) ([8fe29f5](8fe29f5))
* **deps:** update dependency json-schema-to-typescript to v14.1.0 ([#2481](#2481)) ([b459a76](b459a76))
* **metric:** icon alignment defaults ([#2489](#2489)) ([bba76fa](bba76fa))

### Features

* **metric:** make value fit logic uniform across panels ([#2484](#2484)) ([991347d](991347d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:metric Related to Metric chart :styling Styling related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metric valueFont fit option should be applied uniformly across grid
2 participants