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

Tool bar above zoom bar and shift-clicking on chart #717

Closed
wants to merge 527 commits into from

Conversation

JennChao
Copy link
Contributor

Updates

Demo screenshot or recording

圖片

Review checklist (for reviewers only)

  • Demos all features
  • Documented/annotated
  • Matches UI/UX specs
  • Meets the code style guide
  • Accessible
  • Mobile first (responsive)
  • RTL support (bidirectional text)
  • Performant (limited bloat)

@JennChao
Copy link
Contributor Author

@theiliad
Here comes the draft PR for tool bar.
Please take a look. Thanks!

@JennChao JennChao changed the title Tool bar above zoom bar Tool bar above zoom bar and shift-clicking on chart Jul 22, 2020
@theiliad theiliad requested a review from designertyler July 22, 2020 13:33
hlyang397 and others added 27 commits July 23, 2020 10:25
- always rotate ticks during zoom domain changing
- fix trailing-comma
- update scales-cartesian.getValueFromScale()
- update line time-series 15 seconds demo data
- using .scss to set fill and stroke color
- use flag to avoid recursive update event
- selected x range and domain as callback parameters
- remove this.isZoomBarEnabled, this.iconPadding
- append random number to resetZoomMenuItemId
- remove unnecessary this.init()
@hlyang397
Copy link
Contributor

hlyang397 commented Aug 11, 2020

@JennChao and I have some discussion, we prefer to follow Carbon component naming convention.
So we will have the overflow icon as one of toolbar button and after clicking the icon, an overflow menu will popup, and overflow menu could contain multiple overflow menu item .
@theiliad Please let me know if you have any question, thanks.
Updated in a956942.

@hlyang397
Copy link
Contributor

@theiliad I have updated the code based on your comments.
Please help to review again and let me know if any other comment, thanks.

Copy link
Contributor

@natashadecoste natashadecoste left a comment

Choose a reason for hiding this comment

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

we allow charts to not have titles (they might be within a dashboard card that already has a title, or whatever the case).
if we dont have a title, the toolbar is left aligned but i feel like the actions should stay to the right (as overflow menus usually do) - i would think we have a spec for this

the open overflow menu opens on the right when the icons are on the left
image

# Conflicts:
#	packages/core/src/components/axes/zoom-bar.ts
#	packages/core/src/configuration.ts
#	packages/core/src/interfaces/components.ts
@hlyang397
Copy link
Contributor

hlyang397 commented Aug 12, 2020

we allow charts to not have titles (they might be within a dashboard card that already has a title, or whatever the case).
if we dont have a title, the toolbar is left aligned but i feel like the actions should stay to the right (as overflow menus usually do) - i would think we have a spec for this

@natashadecoste
Thanks for catching this.
You are right, the toolbar should be right aligned.
I have pushed a fix fa0f2fe for the no title chart with toolbar enabled.
Thanks.

image

sophiiae
sophiiae previously approved these changes Aug 13, 2020
@hlyang397
Copy link
Contributor

@theiliad @natashadecoste @sophiiae
Any update for this PR?

@theiliad
Copy link
Member

@JennChao could you please resolve the conflicts?

@hlyang397 hlyang397 mentioned this pull request Sep 8, 2020
8 tasks
@hlyang397
Copy link
Contributor

Replaced by #766 #773 #791
Closed this PR.

@hlyang397
Copy link
Contributor

@theiliad
It looks like I don't have permission to close this PR, could you help to close this one ? Thanks.

@theiliad theiliad closed this Sep 8, 2020
@theiliad
Copy link
Member

theiliad commented Sep 8, 2020

Closed in favor of #791

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.

6 participants