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: use IThemeRange for chart.background option #228

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

dana-c0914
Copy link

Please check if the PR fulfills these requirements

  • It's submitted to right branch according to our branching model
  • It's right issue type on title
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features) -> no need for tests
  • Docs have been added/updated (for bug fixes/features) -> already exists
  • It does not introduce a breaking change or has description for the breaking change

Description

I updated the IThemeConfig interface to use the existing IThemeRange interface for the chart.background option.

The code was already assuming that the option is of type IThemeRange and not just string and also the docs were showing.

@jung-han
Copy link
Member

Can one of the admins verify this patch?

@jung-han
Copy link
Member

jung-han commented Nov 6, 2019

ok to test

Copy link
Member

@jung-han jung-han left a comment

Choose a reason for hiding this comment

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

Thanks for PR!

@@ -80,7 +80,7 @@ declare namespace tuiChart {
interface IThemeConfig {
chart?: {
fontFamily?: string;
background?: string;
background?: IThemeRange;
Copy link
Contributor

Choose a reason for hiding this comment

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

As the naming of the IThemeRange type is used universally, it seems necessary to change the name.

How about a naming of IThemeBackgroundConfig?

Copy link
Member

Choose a reason for hiding this comment

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

@dana-c0914 I'll Apply it after merge.

Copy link
Author

Choose a reason for hiding this comment

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

@jung-han thank you

@jung-han jung-han merged commit 3e6c1fa into nhn:master Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants