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: implement "tooltip" prop on the ButtonIcon component #2064

Merged
merged 11 commits into from
Dec 30, 2020

Conversation

HellWolf93
Copy link
Collaborator

fix: #2059

Changes proposed in this PR:

  • add tooltip prop to ButtonIcon component

@commit-lint
Copy link

commit-lint bot commented Dec 25, 2020

Features

  • implement "tooltip" prop on the ButtonIcon component (37ca45d)

Bug Fixes

  • solve errors on tests (6f58882)
  • fix error when using htmlElementRef (95b0d42)
  • fix tooltip behavior in ButtonIcon component (7af22c5)
  • add buttonRef to ButtonIcon API for backward compatibility (1431d7d)

Code Refactoring

  • make ButtonIcon a functional component (e4e8d54)

Contributors

HellWolf93, LeandroTorresSicilia

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

super(props);
this.buttonRef = React.createRef();
}
const ButtonIcon = React.forwardRef((props, ref) => {
Copy link

Choose a reason for hiding this comment

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

Function ButtonIcon has 113 lines of code (exceeds 25 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Dec 30, 2020

Code Climate has analyzed commit 3ed3801 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit be6c752 into nexxtway:master Dec 30, 2020
jpetaux pushed a commit to jpetaux/react-rainbow that referenced this pull request Jun 27, 2021
…y#2064)

* feat: implement "tooltip" prop on the `ButtonIcon` component

fix: nexxtway#2059

* fix: solve errors on tests

* refactor: make ButtonIcon a functional component

* fix: fix error when using htmlElementRef

* fix: fix tooltip behavior in ButtonIcon component

* fix: add `buttonRef` to ButtonIcon API for backward compatibility

Co-authored-by: Jose Leandro Torres <jtorressicilia@gmail.com>
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.

feat: implement "tooltip" prop on the ButtonIcon component
2 participants