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: help menu tooltip (fixed #266) #330

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

jinwoo-kim-nhn
Copy link
Contributor

@jinwoo-kim-nhn jinwoo-kim-nhn commented Feb 9, 2020

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)
  • Docs have been added/updated (for bug fixes/features)
  • It does not introduce a breaking change or has description for the breaking change

Description

issue

작업내용

  • 툴팁이 나오도록 하는 누락된 tooltip-content 애트리뷰트 추가

Copy link
Contributor

@dongsik-yoo dongsik-yoo left a comment

Choose a reason for hiding this comment

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

[02/12] 수고하셨습니다.

src/js/ui.js Outdated
@@ -159,9 +150,9 @@ class Ui {
*/
changeUndoButtonStatus(enableStatus) {
if (enableStatus) {
this._els.undo.classList.add('enabled');
this._buttonElements.undo.classList.add('enabled');
Copy link
Contributor

Choose a reason for hiding this comment

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

변수 cache 하는게 어떠세요? Dot으로 쓰는게 넘 기네요.

Copy link
Contributor

Choose a reason for hiding this comment

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

이런 패턴이 많네요 ㅠ

Copy link
Member

Choose a reason for hiding this comment

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

그러게요... dot chain 길어지니 뭔가 불편하네요...ㅎㅎ
지금의 메서드 구성 말고 더 좋은 방법은 없을까요?

Copy link
Contributor Author

@jinwoo-kim-nhn jinwoo-kim-nhn Feb 12, 2020

Choose a reason for hiding this comment

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

undo, redo, reset, delete, deleteAll 버튼에 해당하는 메서드들의 패턴이 동일하네요. 메서드 한개로 바꾸겠습니다.

classList를 직접 사용하면서 chain이 더 길어 보이는것 같네요..
좀 고민해보고 추후에 UI쪽에 같은 패턴으로 구현된 부분들, 이슈 만들어서 일괄 수정해보도록 하겠습니다.

이번에는 dot chain을 일단 변수캐시 하여 사용해보겠습니다.

src/js/ui.js Outdated

/**
* Make tooltip for help menus
* @param {string} menuName - menu name
Copy link
Contributor

Choose a reason for hiding this comment

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

파라미터가 없습니다. JSDOC에서 빼야 할거 같아요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 반영하겠습니다. 감사합니다.

@jinwoo-kim-nhn jinwoo-kim-nhn changed the title fix: help menu tooltip fix: help menu tooltip (fixed #266) Feb 12, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn merged commit c768edc into master Feb 12, 2020
@jinwoo-kim-nhn jinwoo-kim-nhn deleted the fix/helpMenuTooltipNowShow branch March 20, 2020 08:12
HerlinMatos pushed a commit to EveryMundo/tui.image-editor that referenced this pull request Jul 2, 2020
* fix: help menu tooltip

* apply codereview

Co-authored-by: superlucky84 <[email protected]>
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

4 participants