Skip to content

Conversation

@kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Feb 19, 2020

What: Closes #3283

@patternfly-build
Copy link
Collaborator

patternfly-build commented Feb 19, 2020

@codecov-io
Copy link

codecov-io commented Feb 20, 2020

Codecov Report

Merging #3798 into master will increase coverage by <.01%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3798      +/-   ##
=========================================
+ Coverage      71%     71%   +<.01%     
=========================================
  Files         785     785              
  Lines       10646   10650       +4     
  Branches     2321    2325       +4     
=========================================
+ Hits         7559    7562       +3     
  Misses       2657    2657              
- Partials      430     431       +1
Flag Coverage Δ
#misc 95.45% <ø> (ø) ⬆️
#patternfly3 85.89% <ø> (ø) ⬆️
#patternfly4 60.04% <80%> (ø) ⬆️
Impacted Files Coverage Δ
...nfly-4/react-core/src/components/Button/Button.tsx 86.84% <80%> (-1.4%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a2e9b3...279820b. Read the comment docs.

dlabrecq
dlabrecq previously approved these changes Feb 25, 2020
>
{icon && variant === ButtonVariant.link && <span className="pf-c-button__icon">{icon}</span>}
{children}
{icon && variant === ButtonVariant.link && linkPosition === 'left' && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this is beyond the scope of this PR since this was the previous behavior, but do we need to restrict use of .pf-c-button__icon to ButtonVariant.link? This is probably a question for @mcarrano or @mceledonia. Seems to me like it could be supported in any button, except maybe the plain variation.

Also should we call it iconPosition instead of linkPosition?

Copy link
Member

Choose a reason for hiding this comment

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

I don't see any reason to restrict it, what do you think @mceledonia ?

Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

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

I agree that it should be possible to place the icon on either side of the link label. But can we just make one change to the example @kmcfaul ? Can we replace the "+" icon for this example, only, with something like the external link icon? If this were an add button, it's unlikely we'd want to place the "+" following the label. Thanks.

@redallen redallen dismissed mcarrano’s stale review March 2, 2020 18:28

Icon was changed.

@redallen redallen merged commit 33739b5 into patternfly:master Mar 2, 2020
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@1.4.19
  • @patternfly/react-core@3.142.0
  • @patternfly/react-docs@4.20.22
  • @patternfly/react-inline-edit-extension@2.17.19
  • demo-app-ts@3.25.7
  • @patternfly/react-table@2.28.0
  • @patternfly/react-topology@2.14.19
  • @patternfly/react-virtualized-extension@1.4.20

Thanks for your contribution! 🎉

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.

Link Button

8 participants