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: add help text prop to change icon size #2450

Conversation

yvmunayev
Copy link
Contributor

@yvmunayev yvmunayev commented Sep 23, 2022

fix: #2449

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Sep 23, 2022

Features

  • add help text prop to change icon size (df95ec7)

Contributors

yvmunayev, 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

@@ -42,7 +42,7 @@ const inverseIconMap = {
* HelpText is a popup that displays information related to an element.
*/
const HelpText = React.forwardRef((props, ref) => {
const { id, title, text, variant, tabIndex, className, style } = props;
const { id, title, text, variant, tabIndex, iconSize, className, style } = props;
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 9 locations. Consider refactoring.


function InfoIcon({ className, style, isFocused }) {
function InfoIcon({ className, style, isFocused, iconSize }) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.


function QuestionIcon({ className, style, isFocused }) {
function QuestionIcon({ className, style, isFocused, iconSize }) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Sep 23, 2022

Code Climate has analyzed commit 155efea and detected 7 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 7

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit 0cc2dc8 into nexxtway:master Sep 23, 2022
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: add help text prop to change icon size, iconSize
2 participants